Regular Expressions 101

Community Library

Community Library Entry

73

Regular ExpressionOpen Workspace

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

Description
Created·2014-04-08 07:58
Updated·2023-10-09 14:47
Type·Match
Flavor·JavaScript
Recommended·

Detects most of the phone numbers all over the world

Submitted by Aditya Joshi
Open Workspace