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

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

Thread Previous | Thread Next
From:
Ilya Zakharevich
Date:
April 28, 2001 13:47
Subject:
Re: [PATCH bleadperl] [ID 20010426.002] Word boundry regex [...]
Message ID:
20010428164714.B22905@math.ohio-state.edu
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.

Ilya

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About