RE: [PHP] Regular Expression
| From: | Dan Joseph | Date: | Tue, 01 Jul 2003 13:46:27 +0000 |
| Subject: | RE: [PHP] Regular Expression | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-153549@lists.php.net to get a copy of this message | ||
Hi,
> It's not so much that your regex is wrong, but there are other functions
> that you may want to use, such as is_numeric(), is_integer(),
> is_string() (there is a good example of checking for an alphabetic
> string on the php site)
That would have been my first choice also, however, with the # and - being
legal, things like ctype_alnum and others don't work out.
-Dan Joseph