I need a regex to match this country-code + area code phone # format:
1-201
where the first two characters are always 1-
and the last 3 characters are digits between 201
and 989
.
I have ([1][\-][0-9]{3})
currently to specify the 1-xyz
and limit length but how can I have the last group to restrict those ranges?
This will be used in PHP.