Home
Tester
Reference
About
Pattern
(foo)(.*?)(blah)?(.*?)(bar)
Input
blah blah
foo This is a test blah. the test does not work. bar
blah blah foo This is a test blah. the test does not work. bar
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
9
milliseconds.
Show Permalink
Permalink
Index
Position
Matched String
$1
$2
$3
$4
$5
0
10
foo This is a test blah. the test does not work. bar
foo
empty string
empty string
This is a test blah. the test does not work.
bar
blah blah
foo This is a test blah. the test does not work. bar
blah blah
foo
empty string
This is a test blah. the test does not work.
bar
empty string