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
r"
\b(?<!@)\d(?:\s*\d){5}\b(?!@)
"
gm
Input 1
1
New
209 016 - should be come up in search result and as 400013(space removed) 209016 - should also come up in search and unaltered as 209016 any numeric string more then 6 digits long should not come up in search eg 20901677,209016@223123, 29016,
Extraction
209 016 - should be come up in search result and as 400013(space removed) 209016 - should also come up in search and unaltered as 209016 any numeric string more then 6 digits long should not come up in search eg 20901677,209016@223123, 29016,