But I don't what environments return multiple matches from one evaluation.
"Tarzan", she said.
"Tarzan"|Tarzan.
If matches can be overlapping, then the inner Tarzan is matched in spite of being surrounded in quotes, and the capture register is bound and all.
This works not as a property of the regex (what it matches), but the regex combined with a scanning algorithm that extracts non-overlapping matches.
But I don't what environments return multiple matches from one evaluation.