Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
(^\+\d\s\(\d{3}\)\s\d{3}\-\d{4}$|^\+\d{1,3}\s\d{2,3}\s\d{2,3}\s\d{2,3}\s\d{2})
/
gm

Description

+1 (555) 555-5555
+90 532 581 98 18
+358 44 944 30 13
Submitted by anonymous - 7 years ago