Re: I lied, another question / problem
| From: | Roman Neuhauser | Date: | Tue, 16 Jan 2007 00:09:18 +0000 |
| Subject: | Re: I lied, another question / problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-247121@lists.php.net to get a copy of this message | ||
# phpuser@netscan.ca / 2007-01-15 16:31:32 -0500:
> I have file which I use for validating which includes the following
> function:
>
> function invalidchar($strvalue)
> {
> if(!ereg("^[[:alpha:][:space:]\'-.]*$", $strvalue)) {
That regexp matches if $strvalue consists of zero or more ocurrences
of a letter, a whitespace character, and any character whose numeric
value lies between the numeric values of "'" and "." in your locale.
Zero or more means it also matches an empty string.
--
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man. You don't KNOW.
Cause you weren't THERE. http://bash.org/?255991