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
/
((?:^|[^\\\n])(?:\\{2})*)\{([#$&])([\w.]+)(?::([^}\\]*(?:\\.[^}\\]*)*))?}
/
gm
Input 1
New
{&var} --> Variable stored in a dictionary --> dict("var") {$prop} --> Property of a class cls.prop read by CallByName and PropGet {#const} --> Some constant values by name from a function Value of foo is '{&var:DD.MM.YYYY}' and bar is '{$prop}' Value of foo is '{&var:DD.{MM}.YYYY}' and bar is '{$prop}' Value of foo is '{&var:DD.\{MM\}.YYYY}' and bar is '{$prop}' This should not match '\{&var:DD.\{MM\}.YYYY\}' but this one '{&var:DD.\{MM\}.YYYY}'