Regex tester
Pattern
Input
blah blah foo This is a test blah.  the test does not work. bar
blah blah foo This is a test.  the test works. bar
Options
Replacement
Click the context tab to see replacements.
2 matches found in about 3 milliseconds.
IndexPositionMatched String$1$2$3
010foo This is a test blah. the test does not work. barfooblahbar
175foo This is a test. the test works. barfooempty stringbar
blah blah foo This is a test blah.  the test does not work. bar
​blah blah foo This is a test.  the test works. bar
  1. blah blah
  2. foo
  3. blah
  4. bar

  5. blah blah
  6. foo
  7. bar
  8. empty string