I’ve been trying for a while to find a regular expression that I need.
3 characters before . and two characters after the decimal point.
I try this
[+ -]?[0-9]{0,3}[.]?[0-9]{0,2} # but accepted as 55555 or the
[+ -]?[0-9]{0,3}[.][0-9]{0,2} # but this is not accepted as the 44
Can someone help me?
Use this:
See it live
I added anchors at the beginning and end. If these are ommitted 55555 produces two matches: 555 and 55.