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(?=\d{6}\b)(?<identifier>37|47|[1234])
/
gm
Input 1
1
New
234556 <-- single match [2] 012345 <-- no match [0] 346980 <-- single match [3] 379456 <-- double match [37] 435794 <-- single match [4] 471234 <-- double match [47] 171234 <-- single match [1] not double match [17]
Extraction
234556 <-- single match [2] 012345 <-- no match [0] 346980 <-- single match [3] 379456 <-- double match [37] 435794 <-- single match [4] 471234 <-- double match [47] 171234 <-- single match [1] not double match [17]