Re: Profanity Filter
| From: | Egan | Date: | Fri, 19 Jan 2001 19:32:37 +0000 |
| Subject: | Re: Profanity Filter | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-35701@lists.php.net to get a copy of this message | ||
On Fri, 19 Jan 2001 14:21:50 -0500 (EST), Ignacio Vazquez-Abrams
<ignacio@openservices.net> wrote:
>>> Use a database for the words and say "SELECT 1 WHERE LOWERCASE('$name')
>> Yeah problem is he has no database support from his host
> Ouch. All is not lost, however:
>
> $words=Array(
> "f***",
> "s***",
> ...
With a dictionary approach you would exhaust yourself trying to catch
all the combinations of words like goodf***, f***mehard, and so on.
A regular expression solution is needed.
Egan