Regex tester
Pattern
Input
foo text 111, 222 and not bar something 333 but foo 444 and better 555

foo 123 456 bar  123


Options
Replacement
Click the context tab to see replacements.
1 match found in about 2 milliseconds.
IndexPositionMatched String${A}${B}
00foo text 111, 222 and not bar something 333 but foo 444 and better 555

foo 123 456 bar 123

456
6 captures
  1. 111
  2. 222
  3. 444
  4. 555
  5. 123
  6. 456
empty string
foo text 111, 222 and not bar something 333 but foo 444 and better 555
​
​foo 123 456 bar  123
​
​
  1. empty string
  2. 456
  3. empty string