September 28th, 2012, 03:29 PM
Digits and decimal points
Hello everyone, I'm having an issue with decimal points and my Regex.
Lets say I have something like:
I use the regex
which works just fine, however when I have something like:
that does not have a decimal point in one of the digit groups I don't get any matches.
Can someone please help me with my number capture groups to also allow for a group without a decimal point..
September 28th, 2012, 03:57 PM
So don't require the decimal point. If you're confident that the numbers themselves are valid,
If not then make the fractional part optional.