javascript - Regular Expression - Unexpected Quantifier -
i getting javascript runtime (unexpected quantifier) error when regular expression validator fired.
the expression - ^[0-9]+(\.[0-9]{1,3})?${1,3}
i trying validate number 3 decimal places.
can see wrong this?
remove {1,3} end of expression:
^[0-9]+(.[0-9]{1,3})?$
Comments
Post a Comment