I would like to find out how you can tell if a character in a variable is a letter or number
for example: if I used the code: ABC123
How would I find out if a variable followed that pattern so if a inputted code would be DNM567 it would print "correct" But if a code was DNM56T it would print "incorrect".
Many thanks