was hoping to use isalnum to quickly validate a url - i.e. url has letters and numbers in it but seems alnum doesn't accept punctuation

how do I check if a %var has letters, numbers and punctuation it?