Regular Expressions question
Posted: Wed Jun 07, 2006 1:54 pm
I'm trying to validate a form input object of type text using regular expressions.
I would like to allow any number or combination of letters, numbers, and/or the characters "_","-", "&".
Anything else I'd like to have recognized as invalid.
Any ideas of how to do this with regular expressions in php?
Thanks!
I would like to allow any number or combination of letters, numbers, and/or the characters "_","-", "&".
Anything else I'd like to have recognized as invalid.
Any ideas of how to do this with regular expressions in php?
Thanks!