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
/
^(?=.{3,16}$)[a-z]([0-9a-z]|[0-9a-z\-](?=[0-9a-z])){1,}([\.](?=[a-z][0-9a-z\-][0-9a-z\-])[a-z]([0-9a-z]|[0-9a-z\-](?=[0-9a-z])){1,}){0,}$
/
gm
Input 1
1
New
cryptosharon cry.pto ----- cr sh.ar ----- cryptosharon9 cry.pto9 c-r.y-p.t-o9 ----- 9cryptosharon 9sh.aron sha.9ron ----- cry-9-pto-5 s-h-a-r-o-n9 a12.b-3 ----- sh--aron crptshrn- otp-.yrc ----- a12345678901234567 -test-123 .test.123 123.test tes
Substitution