Profanity Check

1
2
def find_words(string, words_to_find):
    return [x for x in string.replace(',', '').lower().split() if x in words_to_find]

More like this

  1. Human readable file names decorator by maxk 2 years, 1 month ago
  2. Regular Expression Dictionary by skitch 5 years, 10 months ago
  3. Template tag "ifregex" and "ifnotregex" by arthurfurlan 3 years, 11 months ago
  4. Detect blog platform by twinsant 5 years, 12 months ago
  5. Allow disabling options in a select widget by scjody 1 year, 11 months ago

Comments

(Forgotten your password?)