Your regular expression is correct here.
An if
statement executes a certain section of code only if a particular condition is true. The while
statement continually executes a block of statements while a particular condition is true.
Example:
String s = "http://maps.google.com/maps?f=q&hl=en&q=04.445560,100.424200&ie=UTF8&z=16&iwIoc=addr&om=1speed:000.0&imei=1234567564";
Pattern p = Pattern.compile("\\d+\\.\\d+");
Matcher m = p.matcher(s);
while (m.find()) {
System.out.println(m.group());
}
Output
04.445560
100.424200
000.0