Home
Tester
Reference
About
Pattern
(?:\G(?!\A)|\bfoo\b)(?:(?!\b(?:bar|\d{3})\b).)*(\d{3})
Input
foo text 111
, 222
and not bar something 333 but
foo 444
and better 555
foo text 111, 222 and not bar something 333 but foo 444 and better 555
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
4
milliseconds.
Show Permalink
Permalink
Index
Position
Matched String
$1
0
0
foo text 111
111
1
12
, 222
222
2
48
foo 444
444
3
55
and better 555
555
foo text 111
, 222
and not bar something 333 but
foo 444
and better 555
empty string
111
empty string
222
and not bar something 333 but
444
empty string
555
empty string