develooper Front page | perl.perl5.porters | Postings from August 2000

Re: Proposal for \v and \V, the small- and large- cut regex operators.

From:
Rick Delaney
Date:
August 10, 2000 05:07
Subject:
Re: Proposal for \v and \V, the small- and large- cut regex operators.
Message ID:
39929D2F.4F031FC2@home.com

Ilya Zakharevich wrote:
> 
> > >   ' ( \\. | [^\\'] )+ ' \F{!<}
> > >  |
> > >   " ( \\. | [^\\"] )* " \F{!<}
> > >  |
> > >   /\* .*? */
[snip]
> It is supposed to be used as /$comment/.   Consider
> 
>   const char * comment_start = "/*";         /* Assume C by defaut */
> 
> The above REx will correctly find the comment in this line.
> 
> Hope this is clearer,

It is, thanks.  I'm not sure why it wasn't clear before, since you said
right out that \F{!<} means, "FINISH, mark positions before this one
as "failing", and restart the whole match".
                  ^^^^^^^

-- 
Rick Delaney
rick.delaney@home.com



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