sub findString($) { my $line = shift; my $compiled_regex = eval "qr/$regex/"; if ($line =~ /$compiled_regex/) { print "found\n"; } }
In reply to Re^3: string substitution within regular expressions?
by Roy Johnson
in thread string substitution within regular expressions?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |