Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
for (grep defined($_), (keys %chat){ my ( $name, $message, $ip) = split /~~/, $chat{$_}; $message =~ s/$_/****/g for @words; # swear words are evil!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: regex for swear filter
by kvale (Monsignor) on Feb 13, 2004 at 04:23 UTC | |
|
Re: regex for swear filter
by Vautrin (Hermit) on Feb 13, 2004 at 04:13 UTC | |
|
Re: regex for swear filter
by chimni (Pilgrim) on Feb 13, 2004 at 04:14 UTC | |
by Anonymous Monk on Feb 13, 2004 at 04:29 UTC | |
by halley (Prior) on Feb 13, 2004 at 12:46 UTC | |
by Abigail-II (Bishop) on Feb 13, 2004 at 13:19 UTC | |
by halley (Prior) on Feb 13, 2004 at 14:16 UTC | |
| |
|
Re: regex for swear filter
by Corion (Patriarch) on Feb 13, 2004 at 07:19 UTC | |
by Abigail-II (Bishop) on Feb 13, 2004 at 10:24 UTC |