#!/usr/bin/env python
import re
message = "WhaT iS lOvE"
pattern = re.compile(r"What is love(!|\?|\.)?$",re.IGNORECASE)
print re.match(pattern,message)
# re.match does not require ^
pattern = re.compile(r"^What is love(!|\?|\.)?$",re.IGNORECASE)
print re.search(pattern,message)
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.