Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
templating regex
Open Workspace
PCRE (Legacy)
Match
Created 2019-06-18 22:43
0
Regular Expression
/
{{
\W
*
(
(?:
(?:
[
a
-
zA
-
Z_
]
\w
+?
(?:
\[
\d
+
\]
)?(?:
\.
[
a
-
zA
-
Z_
]
)?
)
)+
)
\W
*
}}
/
gm
Description
not perfect, but a start
double brace template
Submitted by
fallen