Regular Expressions 101

Community Patterns

1...34567...902

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
^(?:\+56|56)?(?:\s?\(?9\)?[\s.-]?(\d{4})[\s.-]?(\d{4}))$
/
gm

Description

912345678 ó +56912345678 ó 56912345678

Submitted by Pablo - 3 months ago