rimmern has asked for the wisdom of the Perl Monks concerning the following question:
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 ?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regex from string
by Zaxo (Archbishop) on May 31, 2006 at 10:32 UTC | |
|
Re: Regex from string
by Samy_rio (Vicar) on May 31, 2006 at 10:34 UTC | |
|
Re: Regex from string
by jhourcle (Prior) on May 31, 2006 at 10:42 UTC | |
|
Re: Regex from string
by prasadbabu (Prior) on May 31, 2006 at 10:34 UTC | |
by Zaxo (Archbishop) on May 31, 2006 at 10:39 UTC |