Regular Expressions 101

Community Patterns

1...56789...651

Regex for telephone numbers all over the world

72

Regular Expression
Recommended
ECMAScript (JavaScript)

/
(?:([+]\d{1,4})[-.\s]?)?(?:[(](\d{1,3})[)][-.\s]?)?(\d{1,4})[-.\s]?(\d{1,4})[-.\s]?(\d{1,9})
/
g

Description

Detects most of the phone numbers all over the world

Submitted by Aditya Joshi - 10 years ago (Last modified 6 months ago)