I have several strings in the rough form:
[some text] [some number] [some more text]
I want to extract the text in [some number] using the
Sometimes you can use simple .split("REGEXP") method available in java.lang.String. For example:
String input = "first,second,third"; //To retrieve 'first' input.split(",")[0] //second input.split(",")[1] //third input.split(",")[2]