regex - How do i validate the numbers which are multiples of 500 using regular expression? -


the text field should accept multiples of 500.

ng-pattern="/^[0-9]*(0|5)(0{2})*$/" 

you can use:

^\d*[05]00$ 

which may try here

or ^\d*[05]00$|^0$ if want allow 0.


Comments

Popular posts from this blog

c# - Get the Class name in a class with atribute inside a attribute method -

java - How to compare two classes -

javascript - Why Selenium can't find an element that is graphically visible -