regex for phone number

match a phone number

Match a phone number with "-" and/or country code.

This is a generalized expression which works most of the time. There are too many variables to make this work around the world. Do try with the phone numbers in your country before using.


expr usage
by geon