I’m using this /[-\+,\.0-9]+/ to match numbers in strings like +4400,00 % or -3500,00 % or 0.00 %.
The matched results I want is +4400,00 and I correctly get it.
What if I wanted the same results for a string like +4.400,00 % (dot for thousands) ?
EDIT
How do I have to modify my RegEx for matching numbers in strings like <font color="red">+44.500 %</font>?
That should cover strings that
+or-, and then perhaps some whitespacesRegarding your additional question (matching numbers inside strings), you should look into the manual of whatever regex API you’re using. Most APIs have separate
searchandmatchmethods;matchwants the whole string to be part of your regular expression’s language, whilesearchwill also match substrings.