I need a regex (for use in an ASP .NET web site) to validate telephone numbers. Its supposed to be flexible and the only restrictions are:
- should be at least 9 digits
- no alphabetic letters
- can include Spaces, hyphens, a single (+)
I have searched SO and Regexlib.com but i get expressions with more restrictions e.g. UK telephone or US etc.
It’s best to ask the user to fill in his country, then apply a regex for that country. Every country has its own format for phone numbers.