|
-
Apr 19th, 2004, 03:52 PM
#1
Thread Starter
Stuck in the 80s
RegExp: Alphanumeric and Hypen Only?
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|