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

Present an example that explains your question. pos() refers to the end of the last global match. Are you asking about any interference between \K and \G? I do not foresee any.

_____________________________________________________
Jeff[japhy]Pinyan: Perl, regex, and perl hacker, who'd like a job (NYC-area)
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;

Replies are listed 'Best First'.
Re: Re: Re: New regex trick...
by dws (Chancellor) on Jul 22, 2002 at 20:24 UTC
    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.