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
/
^(?!.*\h\S)[\da-zA-Z\h]{12}$
/
gm
Input 1
1
New
abcdef12345 abcdef1234 abcdef123456 abcdef 23456 abcdef12345 abcdef12345
Substitution
abcdef12345 abcdef1234 abcdef123456 abcdef 23456 abcdef12345 abcdef12345