Help for this page

Select Code to Download


  1. or download this
    my $keywords = "NSA|cocaine|Lybia|assasin(at(ion|e))?|CIA";
    print "Enter regex matching other keywords:";
    ...
    if ($string =~ m/$keywords|$userwords/x) {
      print "Found a terrorist!  $string\n";
    }