my $a = "SCALAR"; my $str = "TT"; my $regexs = qr/[^\Q$str\E]/i; $a =~ s/$regexs/HOO /g; print "[$a]\n"; __END__ [HOOHOOHOOHOOHOOHOO]
In reply to Re: reversing a compiled regex?
by OM_Zen
in thread reversing a compiled regex?
by dash2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |