I would like some help with regex.
I\'m trying to create an expression that will include certain strings and exclude certain strings.
For example:
I
Make two regexes one for good and one for bad, and check both? (first the bad, then the good). You can do it with a single regex, but KISS is always a good rule ( http://en.wikipedia.org/wiki/KISS_principle )
I'll add that you need to consider the "ass" principle... .*ass
matches ambassador
and cassette
, so you'll probably want to have a separator ([./\\]
) before and after each word.
Obscenity Filters: Bad Idea, or Incredibly Intercoursing Bad Idea?