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
Try doing something like this:
Pattern p = Pattern.compile("^.+(\\d+).+"); Matcher m = p.matcher("Testing123Testing"); if (m.find()) { System.out.println(m.group(1)); }