Regular Expressions 101

Community Patterns

1

Match paths

PCRE2 (PHP >=7.3)
Match paths
Submitted by os_niko - 4 days ago

French phone number

-2

Regular Expression
PCRE (PHP <7.3)

/
(?:\+33|\(\+33\)|0)(?:-| |)([0-9]{1})(?:-| |)([0-9]{2})(?:-| |)([0-9]{2})(?:-| |)([0-9]{2})(?:-| |)([0-9]{2})
/
gm

Description

Loading markdown...
Submitted by Benoit Anastay - 10 years ago