develooper Front page | perl.perl5.porters | Postings from April 2001

Re: [PATCH bleadperl] [ID 20010426.002] Word boundry regex [...]

Thread Previous | Thread Next
Ilya Zakharevich
April 28, 2001 13:47
Re: [PATCH bleadperl] [ID 20010426.002] Word boundry regex [...]
Message ID:
On Sat, Apr 28, 2001 at 08:41:13PM +0100, Hugo wrote:
> :The only suggestion I have is that there might have been a case when
> :this chunk is entered *before* PL_regprev is set.  Can this happen?
> Not that I can see: regexec_flags() sets it whenever startpos == strbeg,
> before any calls to find_byclass either indirectly (through intuit_start)
> or directly.

This means that I'm right: intuit_start() is usually called *before*
regexec_flags() is entered.

> Is it possible that lookbehind could get back to strbeg when PL_regprev
> is not set, or not set correctly?

I would hope that lookbehind resets PL_regprev.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About