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

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -