Shashikant
Shashikant

Reputation: 1

Regex - accept only numbers between 4 to 12 (shouldnot accept anything else)

textbox should accept only 2 digits.It should accept only numbers between 4 to 12. suppose if u enter 1,2,3, it should not allow,similarly if u enter more than 12 it should not allow

Upvotes: 0

Views: 73

Answers (1)

Peter Li
Peter Li

Reputation: 789

in case you want the regex,

([4-9]|1[0-2])

Upvotes: 1

Related Questions