exp = re.compile(r'tu(m*)y')
s='''scratch your tummy'''
## Does the full string match?
match_obj = exp.match(s)
print 'The above should be None.'
## Does any of the string match?
match_obj = exp.search(s)
print "Ooh! It is some non-None value."
print "The above shows the part that matched, on the whole."
print 'The above shows the 1st "captured" group (which is any number of m characters)'