alphaNumeric function

what’s a quick way to determine wether or not a string is composed of all alphanumeric characters. ie, a-z or 0-9.

thanks.