regualr expression is issue
Posted
by SCNCN2010
on Stack Overflow
See other posts from Stack Overflow
or by SCNCN2010
Published on 2010-06-10T12:20:00Z
Indexed on
2010/06/10
12:42 UTC
Read the original article
Hit count: 258
$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
© Stack Overflow or respective owner