Regular Expressions 101

Community Patterns

Greek Phones

0

Regular Expression
PCRE (PHP <7.3)

/
^(2\d|69)\d{8}$
/
g

Description

Matches any Greek Phone with 10 digits starting with '2' or '69'

Submitted by Nick I. Kritikos - 7 years ago