in reply to Re: Re: New regex trick...
in thread New regex trick...

pos() refers to the end of the last global match.

Oops, you're right. The code fragement I was thinking of used pos() - $delta to get the starting point.