Regular Expressions 101

Community Patterns

Community Library Entry

73

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 a year ago)