I`ve been trying to extract doubles (positive or negative) from a string with regex patterns, but the one that works better just gets the positive ones.
Pattern p = Pattern.compile("(\\d+(?:\\.\\d+))");
Matcher m = p.matcher(str);
This is Java code.
Heres an example of what I
m trying to work with:
Do you now how to add negative doubles to the ecuation?
Thanks!