RE: [PHP] ereg is failing on this simple test
| From: | Dave G | Date: | Sat, 13 Dec 2003 04:03:09 +0000 |
| Subject: | RE: [PHP] ereg is failing on this simple test | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-172627@lists.php.net to get a copy of this message | ||
> Why is this test failing?
> If (ereg("^[a-zA-Z0-9\s.\-_']+$", $data)) {
I'm very new to PHP, so I may be barking up the wrong tree, but what is
that "s" doing after the slash? I don't know if it's the cause of the
problem, but as far as I know it's superfluous.
--
Yoroshiku!
Dave G
ml@autotelic.com