how to find second instance of char in string?
hi i am reading from a file and have a number of line like the following
i want to split this line with a space or \n or anything at the second : but how can this be done i know there is replace() but this will only replace first instance or all but i need to leave the first instance in a nd remove/replace the others any help would be great thanks
so should look like
Re: how to find second instance of char in string?
Use the String class's method to find the first and then starting at its location find the next (the second one)
Then use another String class method to get the sub parts of the String.