gooshie commented on a Page, Help with Python plugin for a bot.  -  Feb 07, 2017
#!/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)
 Respond  
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.