I'm trying to find a way to cycle through a string and get data within two characters, for example... I have the following String.
String test = "<172>Lorem Ipsum";
Lets say I want the data that is in-between the two characters '<' & '>' So the result should be "172"
Now, if the string was going to be 3 digits inbetween these every time, using a sub-string would be fine, however that's not the case, as this string will be changing, so lets say this string could be
String test = "<9>Lorem Ipsum"
I would need the result to be "9"
How should I go about getting this information.
<, then find the next end marker>, then take a substring using those positions. Which part do you need help with?<...>in the string?