Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Regex backreference without capture (?&NAME) NamedCapture

by QM (Parson)
on Mar 05, 2019 at 10:33 UTC ( #1230893=note: print w/replies, xml ) Need Help??


in reply to Re: Regex backreference without capture (?&NAME) NamedCapture
in thread Regex backreference without capture

Thanks.

But does this do backreferences? I see it matches the same pattern, but that's not the same as a backreference.

But thanks, that makes me think about the problem differently.

Edited to add:
------------------
I'm considering using named capture groups, where there's a need to have a well-defined return value. Which is something PCRE has, and some people (!) can't live without, apparently.

-QM
--
Quantum Mechanics: The dreams stuff is made of

  • Comment on Re^2: Regex backreference without capture (?&NAME) NamedCapture

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1230893]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (1)
As of 2021-10-21 07:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (82 votes). Check out past polls.

    Notices?