in reply to Re: Regex Question
in thread Regex Question
Close.
if (grep { $pass =~ /$_/ } map quotemeta, @badwords) {
or
if (grep { index($pass, $_) >= 0 } @badwords) {
or
my $re = join '|', map quotemeta, @badwords;
if ($pass =~ /$re/) {
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Regex Question
by Ieronim (Friar) on Jul 12, 2006 at 23:17 UTC | |
by ikegami (Patriarch) on Jul 12, 2006 at 23:56 UTC |