Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
\W(\d{3})?\W?(\d{4})\W?(\d{4})\W
/
g

Description

Regex for phones in Guatemala

Submitted by Rodrigo Polo - 10 years ago