let\'s say i have string like that:
eXamPLestring>1.67>>ReSTOfString
my task is to extract only 1.67 from string above.
Here's how to do it in one line,
String f = input.replaceAll(".*?([\\d.]+).*", "$1");
If you actually want a float, here's how you do it in one line:
float
float f = Float.parseFloat(input.replaceAll(".*?([\\d.]+).*", "$1")),