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
/
^(?:.{0,10}|.{12,}|[a-zA-Z]{6}[a-zA-Z0-9]{5})$
/
gm
Input 1
1
New
abc def abcde12345 aaaaaaaaaaaaaaaaa aaa4aaa*aa5
Substitution
abc def abcde12345 aaaaaaaaaaaaaaaaa aaa4aaa*aa5