Okay this really isn't anything more than me laffing at myself. I knew there would come a time when I would need to validate a US phone number. That time has come for a client of mine, so I set out on my quest to find a pre-made regular expression script for a usa phone number.
Many of the scripts I found fail very miserably and really are only set to test 1 or maybe 2 formats. So I decided I would just re-invent the wheel and create my own, but first I Need to see the different possibilities, and I was surprised to guess how many there are.
take your guess and in a week I will reveal the answer.
PS I know I should create one for international numbers too... but that is another option I am going to give the user


Reply With Quote

Bookmarks