Regular Expressions 101

Community Patterns

1...45678...902

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^(\+?34)?(6\d{2}|7[1-9]\d{1})\d{6}$
/

Description

Matches current mobile telephone numbers in Spain.

Submitted by Carlos Interactive3g - 10 years ago