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
/
@(?={)([^}{]+|{((?1)*)})
/
g
Input 1
1
New
@{ This is some text { This another text { inner text } } } @{ this is text2 } another text that does not match the regex @{ this is another text { another inner text } }
Extraction
@{ This is some text { This another text { inner text } } } @{ this is text2 } another text that does not match the regex @{ this is another text { another inner text } }