I would like to know how to parse several double numbers from a string, but string can be mixed, for instance: String s = \"text 3.454 sometext5.567568more_text\"
String s = \"text 3.454 sometext5.567568more_text\"
You could search for the following regex:
Pattern.compile("[-+]?[0-9]*\\.?[0-9]+([eE][-+]?[0-9]+)?")
and then use Double.parseDouble() on each match.