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
"
^\.?(?:\d+|[a-z]+)(?:\.(?:\d+|[a-z]+))*\.?$
"
gm
Input 1
1
a.1.b.c.d.2.a a.1.b.c.d.2.777 .a.1.b.c.d.2.777 3423.a.1.b.c.d.2.2342345 a.2.b.c2.a.1. aha.comment.1.app aha.comment1.app