Python: regex

From OnnoWiki
Revision as of 22:44, 31 January 2017 by Onnowpurbo (talk | contribs) (Created page with " def contains_alphanumeric( input): r=re.match('[0-9a-zA-Z]+', input) if r==None: return False else: return True")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
def contains_alphanumeric( input):
   r=re.match('[0-9a-zA-Z]+', input)
   if r==None:
      return False
   else:
      return True