A quick reference on testing a regular expression. If the regex is matched, the call returns a match object (an empty one in this case since there are groups to select) - rather than None.

import re
re.match( re.compile( '[Hh]ello.*[Ww]orld' ), 'Hello, World!' )