develooper Front page | perl.perl5.porters | Postings from December 2013

[perl #115214] re::engine seems to fail supporting \G

From:
James E Keenan via RT
Date:
December 20, 2013 21:20
Subject:
[perl #115214] re::engine seems to fail supporting \G
Message ID:
rt-4.0.18-20729-1387574431-1651.115214-15-0@perl.org
On Fri Dec 13 16:16:23 2013, jkeenan wrote:
> On Sat Nov 24 11:59:34 2012, alh wrote:
> > Is this actually a Perl bug?
> >
> > https://metacpan.org/module/re::engine::RE2 says:
> >
> > "Fallback to normal Perl regexp is implemented by this module. If RE2
> > is
> > unable to compile a regexp it will use Perl instead, therefore
> > features
> > not implemented by RE2 don't suddenly stop working, they will just
> > use
> > Perl's regexp implementation"
> >
> > If you want to avoid (and detect) that behavior, you can use the
> > -strict
> > => 1 pramga.
> >
> > mhorsfall@Fireforge:~$ perl -E 'use re::engine::RE2 -strict => 1; say
> > "OK" if "abc\n" =~ /\Gabc$/'
> > invalid escape sequence: \G at -e line 1.
> >
> > -- Matthew Horsfall (alh)
> >
> 
> 
> There has been no further correspondence in this ticket in more than a
> year.  My reading of alh's last post is that there is no bug in Perl 5
> here.  Accordingly, I am taking this ticket for the purpose of closing
> it within 7 days unless someone else wishes to take the ticket over
> and move the discussion forward.
> 
> Thank you very much.
> Jim Keenan


Closing as per schedule.

Thank you very much.
Jim Keenan

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=115214



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