Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^0\d(?:[ .-]?\d{2}){4}$
/

Description

Match french telephones numbers. Allows space, dot and dash between pairs of numbers.

Submitted by bsymon - 10 years ago