import re
def matchsix(string):
temp = re.compile(r"^6")
if temp.match(string):
return True
else:
return False
def match_ism(string):
#must have .* before suffix and $
temp = re.compile(r".*ism$")
if temp.match(string):
return True
else:
return False
def match_end_num(string):
#checks for a number at the end of a string.
temp = re.compile(r".*[0-9]$")
if temp.match(string):
return True
else:
return False