my $line = "root (hd1,1)"; my $match = "root \(hd[0-9],[0-9])"; if ($line =~ m/$match/is) { print "match 1 found \n"; }
However, this doesnt work. Is there a different way I should be doing this ?
In reply to Regex from string by rimmern
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |