I have a String and I want to extract the (only) sequence of digits in the string.
Example: helloThisIsA1234Sample. I want the 1234
It\'s a given that the s
String line = "This order was32354 placed for QT ! OK?"; String regex = "[^\\d]+"; String[] str = line.split(regex); System.out.println(str[1]);