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[2-9][0-9]{3}[^\S\r\n][0-9]{4}[^\S\r\n][0-9]{4}\b
/
gm
Input 1
1
New
2355 2345 7868 aaa 2355 2345 7868 2355 2345 7868 1355 2345 7868 235 2345 7868 2355 2345 786 2A55 2345a7868 235523457868
Substitution
2355 2345 7868 aaa 2355 2345 7868 2355 2345 7868 1355 2345 7868 235 2345 7868 2355 2345 786 2A55 2345a7868 235523457868