How can I use regular expressions to make sure a string only has letters, numbers, and/or hypens?
0123 - Okay
0a12 - Okay
0-12 - Okay
Any other characters are not allowed. I've searched for this, but all I've found is confusion. Any help would be appreciated.
