ovedpo15 has asked for the wisdom of the Perl Monks concerning the following question:
When I print the message:{ 'regex' => qr/^\/a\/.*?\/b\/.*\/pkgs\/([^\/]*)?\/([^\/]*)?\/.*/ }
I get:print("Regex: $regex\n");
It adds the ?^: at the start. What is the proper way to get rid of it?Regex: ?^:^/nfs/.*?/itools/.*/pkgs/([^\/]*)?/([^\/]*)?/.*/)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to print the qr regex to the stdout?
by ikegami (Patriarch) on Feb 28, 2022 at 17:45 UTC | |
|
Re: How to print the original qr regex to the stdout?
by Anonymous Monk on Feb 28, 2022 at 10:15 UTC | |
by ovedpo15 (Pilgrim) on Feb 28, 2022 at 10:38 UTC | |
by Anonymous Monk on Feb 28, 2022 at 13:55 UTC | |
by LanX (Saint) on Feb 28, 2022 at 14:26 UTC | |
|
Re: How to print the qr regex to the stdout?
by LanX (Saint) on Feb 28, 2022 at 12:12 UTC |