I have a list of bad word. Let's say it is:
BAD_WORDS = ['bw1', 'bw2',...]
Now I'm wondering what is the most efficient way to check a long string (aka a django request post) in a code like:
if re.search(comment.body) in BAD_WORDS:
dosomething;