Python regex to determine whether a character is numeric, alphanumeric or in a specified string -
i unsure how 1 use python regex determine whether character numeric, alphanumeric or in specified string.
something (fake code warning):
if 'a' in re.['a-z']: print "alpha" if '.' in re.['.,;']: print "punctiation"
Comments
Post a Comment