Hi Monks,
I have to locate from a large amount of lines, the lines that starts with "iff", the problem is that there're also lines begins with "if".
I'm interested only in the Regex that seperates the two kinds.
In the code below I have to get "didn't catch you !!"
my $line = "Iff bla blabla bla...";
if ($line =~ /^If?/)
#if ($line =~ /^If{1}/)
{
print "catch you !!\n";
}
else{print "didn't catch you !!\n";}
In the second part i have to get (with the same regex): "catch you !!"
my $line = "If bla blabla bla...";
if ($line =~ /^If?/)
#if ($line =~ /^If{1}/)
{
print "catch you !!\n";
}
else{print "didn't catch you !!\n";}
Thanks,
Mosh.