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? -

angular - Angular2 Router: Cannot find primary outlet to load 'HomeComponent' -

qt - Microsoft FTP Service 451 The parameter is incorrect -