It adds the ?^: at the start. What is the proper way to get rid of it?
Try Data::Dump pp to serialize regex or something from re or B to get original qr
maybe use https://perldoc.perl.org/re#regexp_pattern($ref)
my ($pat, $mods) = regexp_pattern($ref); my $parentless = ( $pat =~ m/[^:]+:(.*?)\)$/s )[0];
In reply to Re: How to print the original qr regex to the stdout?
by Anonymous Monk
in thread How to print the qr regex to the stdout?
by ovedpo15
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |