Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: How to print the qr regex to the stdout?

by LanX (Saint)
on Feb 28, 2022 at 12:12 UTC ( [id://11141702]=note: print w/replies, xml ) Need Help??


in reply to How to print the qr regex to the stdout?

On another note:

You used a lot of escaping of \/ in your regex:

> "regex" => qr/^\/a\/.*?\/b\/.*\/pkgs\/([^\/]*)?\/([^\/]*)?\/.*/

Are you aware that qr and his siblings of "quote-like-operators" allow other delimiters?

Like qr(...) or qr~...~ and so on?

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-04-25 08:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found