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