Skip Menu |

This queue is for tickets about the re-engine-RE2 CPAN distribution.

Report information
The Basics
Id: 69300
Status: open
Priority: 0/
Queue: re-engine-RE2

People
Owner: Nobody in particular
Requestors: DOHERTY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: translate Perl named captures for RE2
It'd be really nice to simply translate (?<name>regex) into (? P<name>regex) for RE2 to minimize the syntactic differences. This would allow more graceful fallback to the Perl engine.
Subject: Re: [rt.cpan.org #69300] translate Perl named captures for RE2
Date: Sat, 9 Jul 2011 15:44:05 +0100
To: bug-re-engine-RE2 [...] rt.cpan.org
From: David Leadbeater <dgl [...] dgl.cx>
On 5 Jul 2011, at 23:44, Mike Doherty via RT wrote: Show quoted text
> It'd be really nice to simply translate (?<name>regex) into (? > P<name>regex) for RE2 to minimize the syntactic differences. This would > allow more graceful fallback to the Perl engine.
I see you opened a ticket against RE2 about this -- I'd prefer if RE2 itself would support this. Trying to translate in front of RE2 would mean writing a mini-regexp parser which I'd rather not do.