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