Regular Expressions 101

Community Patterns

Russian mobile number normilizer (dumb)

-2

Regular Expression
PCRE (PHP <7.3)

/
^(?:[0187]?|\+[87]?)[- .]?(?:(\([2-9]\d{2}\)|[2-9]\d{2})[- .]?[- .]?(\d)[- .]?[- .]?(\d)[- .]?[- .]?(\d)[- .]?[- .]?(\d)[- .]?[- .]?(\d)[- .]?[- .]?(\d)[- .]?[- .]?(\d)[- .]?)$
/
gm

Description

no description available

Submitted by fullpipe - 10 years ago