$regex = "ISOLATION"; if ($dataline =~ $regex) { print "Found a match!\n"; } else { print "No match!\n"; }
In reply to Re: Regex from a variable...
by I0
in thread Regex from a variable...
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |