in reply to prohibiting certain strings
$input = "There's the b/a/d/w/o/r/d."; (my $test = $input) =~ s/\W+//g; if($test =~ /badword/) { print "You sneaky devil!\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: prohibiting certain strings
by ptum (Priest) on Dec 28, 2005 at 23:39 UTC |