> >>> import re > >>> matchstr = 'fleas' > >>> sentence = 'my dog has fleas' > >>> if re.match(matchstr, sentence): print "Yes, it works." > ... try re.search() match() only matches if 'fleas' is at the start of the line. Alan G