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
In reply to Re: How to print the qr regex to the stdout?
by LanX
in thread How to print the qr regex to the stdout?
by ovedpo15
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |