in reply to regex for swear filter

Just to add what kvale mentioned, there is also Regex::Common, which also has a profanity regex built-in, but the wordset is different from what I know.

You didn't discuss why you want to filter "profanity", but take a look at this and consider the possible consequences before liberally applying a profanity filter.

Replies are listed 'Best First'.
Re: regex for swear filter
by Abigail-II (Bishop) on Feb 13, 2004 at 10:24 UTC
    I have no intention to change anything of the 'profanity' regexp of Regexp::Common.[1] I only keep it their for backwards compatability reasons. I think it's far to controversial (someones profanity is someone elses common words) to be included.

    [1] Well, I might add words like 'gun', 'God', 'children', 'Perl 6', and 'George W. Bush'.

    Abigail