Hi, Try this,
use strict; use warnings; my $line = "root (hd1,1)"; my $match = qr/root \(hd[0-9],[0-9]\)/i; if ($line =~ $match) { print "match 1 found \n"; }
Regards,
Velusamy R.
In reply to Re: Regex from string
by Samy_rio
in thread Regex from string
by rimmern
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |