I searched on Google for phone number regex validations but haven't been able to make it work based on my requirements.Basically, I have three separate sets of rules for the prefix:
- For 10 digit numbers I need to make sure the first 3 are numbers starting from 2-9.
- For 11 digit numbers I need to make sure the first 4 are numbers starting from 1-9.
- For for anything greater than 12 digits I need to make sure the first 7 are numbers from 0-9.