Reputation: 29
Can someone provide an example JavaScript regular expression to match 101 - 999? I'm having a hard time figuring it out.
Upvotes: 2
Views: 234
Reputation: 785146
You can use this regex:
^(10[1-9]|1[1-9][0-9]|[2-9][0-9]{2})$