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?? |
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
In Section
Seekers of Perl Wisdom
|
|