W
W
Weageoo2011-11-01 18:07:47
Regular Expressions
Weageoo, 2011-11-01 18:07:47

Regexp for Belarusian numbers

There was already a topic on Habré with a regular expression for verifying Russian numbers. Maybe someone was involved in the verification of Belarusian numbers? Share your experience!

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
MikhailEdoshin, 2011-11-01
@Weageoo

A Google libphonenumber won't help?

L
La2ha, 2016-03-28
@La2ha

Here is my mobile version
^(\+375|80)(29|25|44|33)(\d{3})(\d{2})(\d{2})$

T
Tthread, 2011-11-01
@Tthread

(8 0(25|29|33|34) ([0-9]{3}( [0-9]{2}){2}))
approximately the same regular expression will be for the first types of numbers, provided that the separator is a space :
8 025 xxx xx xx
8 029 xxx xx xx
8 033 xxx xx xx
8 044 xxx xx xx

C
cs_gamers2014, 2022-02-03
@cs_gamers2014

Regular expression: ^\s*\+?375((33\d{7})|(29\d{7})|(44\d{7}|)|(25\d{7}))\ s*$
Operators: MTS, Velcom and Life.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question