Regular Expressions 101

Community Patterns

Phone with extension

0

Regular Expression
PCRE (PHP <7.3)

/
^(?<AC>\d{3})(?<First>\d{3})(?<Last>\d{4})\s(?<EXT>(E?X?T?e?x?t?\.?\s?\d{1,7})?)
/
gm

Description

no description available

Submitted by jerndt - 8 years ago