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

ios - Is 'init' forbidden as *part* of a variable name? -

file - Python: AttributeError: 'str' object has no attribute 'readlines' -

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