Regular Expressions 101

Community Library Entry

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 - 11 years ago (Last modified a year ago)