This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

REGEX for profanity

Does anyone know how to regex to block those fabulous 4 letter words that are proliferating?  I tried just the word and it starts blocking a bunch of legitimate email. 

TIA


This thread was automatically locked due to age.
Parents Reply
  • The notation [:space:] will match whitespace, so 

    $ echo ' foot ' |grep foo

    returns

     foot

    whereas

    $ echo ' foot ' |grep '[:space:]foo[:space:]'

    returns nothing.

    O'Reilly's "Regular Expressions Pocket Reference" is handy to have around.
Children
No Data