Regular Expressions 101

Community Patterns

Phone Number Match only + and digits

0

Regular Expression
ECMAScript (JavaScript)

/
^\+{0,1}\d{6,}$
/
gm

Description

not match :

123-456-7890 (123) 456-7890 123 456 7890 123.456.7890 +91 (123) 456-7890

match : 989998 787878787 +783788 003883

Submitted by Azhi - 2 years ago