我一直试图从带有正则表达式模式的字符串中提取双精度(正面或负面),但效果更好的那个只能得到正面的。
Pattern p = Pattern.compile("(\\d+(?:\\.\\d+))");
Matcher m = p.matcher(str);
这是Java代码。
此处s an example of what I
尝试使用:
https://www.google.es/maps/dir/6.1521026,-75.6158273/6.1769038,-75.5853826/6.150728,-75.5312788/6.2007872,-75.5786226/6.236831,-75.5706288/6.1868153,-75.5914233/6.1742041,-75.3394911/6.2646443,-75.5684491/6.2541748,-75.4211777/@6.2402553,-75.6186275,11z/data=!3m1!4b1
你现在如何添加负双倍的信息?
谢谢!