develooper Front page | perl.perl5.porters | Postings from June 2016

Re: [perl #127617] /n regexp modifier and backreferences to previousgroups

Thread Previous | Thread Next
From:
Ed Avis
Date:
June 6, 2016 12:15
Subject:
Re: [perl #127617] /n regexp modifier and backreferences to previousgroups
Message ID:
loom.20160606T141327-333@post.gmane.org
Note that .NET regular expressions have a possible solution to the
composability problem, as described in <http://research.swtch.com/irregexp>:

>.NET introduces a variant on the named capture, (?<-x>...), which, during
>the match, deletes the last captured substring for x, exposing the one that
>was there before.

Is this something that would be easy to implement in Perl?  The compatibility
for regexps ported from .NET languages such as C# might be enough reason
in itself.

-- 
Ed Avis <eda@waniasset.com>


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