Regular Expressions 101

Library entries

Russian mobile number normilizer (dumb)

Vote

-2

Regular Expression
pcre

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

Description

Loading markdown...
Submitted by fullpipe - 8 years ago