Hi guys
this is my very first python program
I've been trying to use re.match to test to see if a string is an identifier
as defined by this syntax
identifier -> letter{ letter| digit}
I tried the following statements
but when i test my program every single time it gets to a number by its self it still thinks its an identifier which is incorrect..
what am i missing??
your assistance is crucial
Thank you
if re.match("^[\w\d_-]+$", i):
if re.match("^[A-Za-z0-9_-]*$",i):
if re.match('\w+(\w\d)+?', i):