in reply to Infinite m//g ??

It seems to me that the RE engine, prefering earlier matches, would take the ^ every time. I'm surprised that it doesn't do that in 5.005.

Of course, pos (which controls where \G matches) isn't explicitly documented as defaulting to 0. So I suppose it's a matter of which undocumented behaviour you want to rely on. ;-)

Perhaps a documentation update is in order?

Update: I stand corrected. :-) tilly tells me that /g matches are never supposed to start before the old match left off. Of course that makes sense. Not sure why I didn't realize that before. :-P

bbfu
Seasons don't fear The Reaper.
Nor do the wind, the sun, and the rain.
We can be like they are.