Home
Tester
Reference
About
Pattern
(?:(?<p>%)|(?<b>{))(?<v>.*?)(?(p)%|})
Input
This is a
{test}
%String%
.
%Stack%
{Overflow}
This is a {test} %String%. %Stack% {Overflow}
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
4
matches found in about
11
milliseconds.
Show Permalink
Permalink
Index
Position
Matched String
${p}
${b}
${v}
0
10
{test}
empty string
{
test
1
17
%String%
%
empty string
String
2
27
%Stack%
%
empty string
Stack
3
35
{Overflow}
empty string
{
Overflow
This is a
{test}
%String%
.
%Stack%
{Overflow}
This is a
{
test
whitespace
%
String
.
%
Stack
whitespace
{
Overflow
empty string