Home
Tester
Reference
About
Pattern
(?:[^{}]|'[^']*'|(?<Open>{)|(?<Content-Open>}))+(?(Open)(?!))
Input
Foo { {private const char BAR = '{'}; private string _qux = '{{{'; }
Foo { {private const char BAR = '{'}; private string _qux = '{{{'; }
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
1
match found in about
4
milliseconds.
Show Permalink
Permalink
Index
Position
Matched String
${Open}
${Content}
0
0
Foo { {private const char BAR = '{'}; private string _qux = '{{{'; }
empty string
{private const char BAR = '{'}; private string _qux = '{{{';
2 captures
private const char BAR = '{'
{private const char BAR = '{'}; private string _qux = '{{{';
Foo { {private const char BAR = '{'}; private string _qux = '{{{'; }
empty string
{private const char BAR = '{'}; private string _qux = '{{{';
empty string