re.match() only returns true if the pattern matches AT THE BEGINNING OF THE STRING. You probably want re.search() instead. See the docs for re module. -- Michael Chermside