The overall regex matches. But the branch doing the capturing fails when the 'g' is in that position. The capture branch is only successful the first time, when it matches 'eb' and should capture the 'e'. Then the next times around it fails, but still captures.
The inconsistent capturing when backtracking in alternations inside repetitions are involved. That is what does not make sense, and what I am trying to understand.
In reply to Re^4: Leaking Regex Captures
by SuicideJunkie
in thread Leaking Regex Captures
by SuicideJunkie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |