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
/
^\w+(?:\[\d+])?(?:\.\w+(?:\[\d+])?)*$
/
gm
Input 1
1
New
parent[0].child parent.child parent.child1.list[0].child2 parent[500].child parent0.child par50ent.child parent[0].child1[20].child[0] parent..child parent[].child parent[1a].child parent[a].child .parent parent.
Extraction
parent[0].child parent.child parent.child1.list[0].child2 parent[500].child parent0.child par50ent.child parent[0].child1[20].child[0] parent..child parent[].child parent[1a].child parent[a].child .parent parent.