Help for this page

Select Code to Download


  1. or download this
    my $mail_id = 'data@mach.com.com';
    if($mail_id=~/[A-Za-z0-9._%-]\@[A-Za-z0-9_%-.].[com]/)
    ...
       print "Not matched \n";
    }
    
  2. or download this
    if($mail_id=~/^[\w\.=-]+@[\w\.-]+\.[\w]{2,3}$/)
    {
    ...
       print "Not matched \n";
    }