Re: Profanity Filter

From: Date: Fri, 19 Jan 2001 19:34:08 +0000
Subject: Re: Profanity Filter
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-35702@lists.php.net to get a copy of this message
On Fri, 19 Jan 2001, Egan wrote: > 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 > Check the code again. I'm not doing a dictionary approach. -- Ignacio Vazquez-Abrams <ignacio@openservices.net>

« previous php.general (#35702) next »