I'm not that great at regular expressions, in fact, I know nothing about them. Of course I could learn it, but not enough time right now.
Anyways, my question is this:
If I have a variable $aNumber that equals "555a" or some other number/letter combination, how can I test it to see if it is all numbers or not?
Also, If I have a variable $aString that equals "aaa5", how can I test it to see if it is all letters or not?
The reason I ask is, I don't want people putting in any numbers in as their name, and I don't want people putting any letters in as their SSN.
Thanks in advance.







Bookmarks