Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
^(\+{0,1})([0-9]{10,14})$
/

Description

Only Numbers Allowed, Optional (+) for international numbers Min: 10 Max: 14 Optional: +

Submitted by Menon Kalipurayath (MenonOn.Net) - 10 years ago