Regular Expressions 101

Community Patterns

phone w/ extension

1

Regular Expression
PCRE (PHP <7.3)

/
^[0-9\)\(\s+-]+(\s?(?:x|extension|ext\.)\s?[0-9-]+)?$
/
gmi

Description

no description available

Submitted by anonymous - 8 years ago