user2125098
user2125098

Reputation: 29

RegEx pattern to match 101 - 999

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

Answers (1)

anubhava
anubhava

Reputation: 785146

You can use this regex:

^(10[1-9]|1[1-9][0-9]|[2-9][0-9]{2})$

Upvotes: 2

Related Questions