Python: regex
Revision as of 23:07, 31 January 2017 by Onnowpurbo (talk | contribs)
Hanya a-zA-Z dalam string
def hanya_huruf( input ): r=re.match('^[a-zA-Z]+$', input) if r==None: return False else: return True
Batas
^ start string $ akhir string