Regular Expressions 101

Library entries

Moscow Phones Pattern

Vote

1

Regular Expression
pcre

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

Description

Loading markdown...
Submitted by cvvvlad - 5 years ago