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

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -