regualr expression is issue
- by SCNCN2010
$a ='SCNSC: [email protected];
$b ='alerts: nek';
$c ='daily-report: tasd,dfgd,fgdfg,dfgdf,[email protected]';
print "matched" if ($a =~ /\w+:\s*\w+@\w+\.\w+/ );
print "matched" if ($b =~ /\w+:\s*\w+[,\w+]{0,}/ );
print "matched" if ($c =~ /\w+:\s*\w+[,\w+]{0,}/ );
its not displaying matched