Charles K. Clarkson wrote:
Sky Blueshoes wrote:
: I've been trying to develop some regex's to match bad words.
: Just comparing against a list of bad words doesn't work that
: well, because I would have to include every possible use of
: a curseword, ie: bullshit, shit, shithead, etc.
Oh crap! Those are bad words? I thought bad words were
FEMA, FDA, EPA, IRS, Homeland Security, stuff like that.
: Plus looping through every word in the list would invariably
: be slow. Here is an example of one such regex:
:
: /(?:bull)shit/i
:
: My problem here is getting the ending on there. I want this
: regex to also match the words, shithead, shitter, etc, etc.
Have you looked at the Regexp::Common::profanity module.
If it doesn't fit your need, perhaps the source can give a
few pointers.
Yes, I have and that's just the problem, those regex's are VERY long AND
they're encoded....I don't even know where to start with those.
SkyBlueshoes
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>