develooper Front page | perl.perl5.porters | Postings from February 2015

Re: [perl #123918] regex end of line match very slow

Thread Previous | Thread Next
From:
wolfsage
Date:
February 25, 2015 16:07
Subject:
Re: [perl #123918] regex end of line match very slow
Message ID:
CAJ0K8biY=GjjLKXFpHZd9WA+qq+7wkWB7GMPmMfY1P7wMHCCFg@mail.gmail.com
On Wed, Feb 25, 2015 at 9:36 AM, Dave Mitchell <davem@iabyn.com> wrote:
> * 5.21.8 and later include the /n modifier, which doesn't set $1 etc,
> but it appears to be buggy in that it seems to still make the string COW.

Is this a bug of /n?

By design /n only prevents grouping parens from filling in $1, $2, etc...

Other things like $&, named captures, etc still work.

-- Matthew Horsfall (alh)

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