Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
(^\+[0-9]{9,15}$)|(^.+@.+\..+$)
/
i

Description

True if user input mobile phone or email

Submitted by jiller - 10 years ago