Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
\b(?:34|32|20)[0-9]{6}\b
/
gm
Input 1
1
New
I'm currently creating a custom regex for kenyan ID numbers, usually the ID number consists of eight digits, the first two digits is constant, but changes with time. Example of an ID number: 34640970. So the mentioned ID is within 34 series. Other series is: 20 series 20456880, 20337228, 20656902 32 series 32879776, 32877009, 32344112 34 series 34640970, 34434229, 34223007