preg_match not working to full satisfaction
| From: | Wim Paulussen | Date: | Mon, 26 May 2003 10:40:02 +0000 |
| Subject: | preg_match not working to full satisfaction | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-148972@lists.php.net to get a copy of this message | ||
I have input that I want to control for the usage of only alfanumeric signs.
"/^[a-zA-Z0-9]{10}$/" is the codeblock I use. I get a no-go (as desired)
when I start with a not-allowed character, but when it appears after an
allowed character , it does not give me a no-go. Should I check each
variable in the string separately ?
Wim