Home
Tester
Reference
About
Pattern
{((?>[^{}]+|(?<c>{)|(?<-c>}))*)(?(c)(?!))}
Input
This is a message
{key1}
{{key2}}
{{{key3}}}
, and includes
{key4}
. {
{key5}
This is a message {key1} {{key2}} {{{key3}}}, and includes {key4}. {{key5}
Options
Ignore Case
Ignore Whitespace
Explicit Capture
Culture Invariant
Singleline
Multiline
Right To Left
ECMA Script
Start from position:
Max matches to find:
Replacement
Replace matches with...
Click the
context
tab to see replacements.
Regex Info
Table
Context
Split List
5
matches found in about
2
milliseconds.
Show Permalink
Permalink
Index
Position
Matched String
$1
${c}
0
18
{key1}
key1
empty string
1
25
{{key2}}
{key2}
empty string
2
34
{{{key3}}}
{{key3}}
empty string
3
59
{key4}
key4
empty string
4
68
{key5}
key5
empty string
This is a message
{key1}
{{key2}}
{{{key3}}}
, and includes
{key4}
. {
{key5}
This is a message
key1
whitespace
{key2}
whitespace
{{key3}}
, and includes
key4
. {
key5
empty string