Community Patterns

Community Library Entry

1

Regular Expression
Created·2016-08-17 10:26
Flavor·PCRE (Legacy)

/
(?:8|\+7|7)?[-\s\(]*(?<kod>\d{3,4})?[-\s\)]*(?<phone>[\d-]{7,10})(?:[\D]+(?<dob>\d+))?\D*$
/
sgm
Open regex in editor

Description

Here is a pattern for all kind of Moscow and Moscow Region phones with or without additional number.

Submitted by cvvvlad