Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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
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 examining the Monastery: (3)
As of 2021-01-22 03:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?