Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Regular
Expressions
101
Regular
Expressions
101
Upgrade to Pro
Enterprise
Regular Expression
r"
(?<![^\s\n])\d{3}[./]\d{3,6}(?:/\d{3})?(?![^\s\n])
"
gm
Test String
New
Codes like 123/456 123/3456 123/23456 etc are correct lorem\123/456
Substitution
Processing...