It would be great if someone could help me with a Regex for phone numbers. Following are the conditions:
Here are some valid numbers:
Thanks in advance
Try with:
^\+?(\d[\d-. ]+)?(\([\d-. ]+\))?[\d-. ]+\d$
However it does not handle number counting
Not exactly the answer to your question, but for those who need to work with phone numbers, there is a .NET port of Google's libphonenumber: libphonenumber-csharp.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With