I'm looking for something that will validate the following:
- 13175551234
- 3175551234
but NOT validate:
- 1 (317) 531 1234
- 1-317-555-1234
Basically it should validate 10 or 11 digit phone numbers that can optionally begin with 1 and don't contain spaces, hyphens or parentheses. The area code should not be optional either.
How can I do this?