Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

by QM (Parson)
on Mar 05, 2019 at 10:33 UTC ( [id://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

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?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-03-29 14:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found