Re: Re: Question to eregi Syntax
| From: | M. Sokolewicz | Date: | Thu, 07 Jul 2005 17:26:32 +0000 |
| Subject: | Re: Re: Question to eregi Syntax | ||
| References: | 1 2 3 | Groups: | php.general php.general |
| Request: | Send a blank email to php-general+get-218303@lists.php.net to get a copy of this message | ||
Philip Hallstrom wrote:
hey, you're right ;) must've missed the opening [ there. Well spotted!janbro wrote:Actually, in the above case it doesn't... from the URL referenced...Hi List, my research hasn't turned anything useful up. Probably 'cause I don't have enough info. I've been playing around with the ereg function. What I was wondering is what is the ^ for like in the below example?it denotes the "start of the string"ereg('[^[:space:]a-zA-Z0-9_.-]{1,}', $name)thx janbroFor example, the character class [aeiou] matches any lower case vowel, while [^aeiou] matches any character that is not a lower case vowel.If the ^ is outside of the []'s then it matches the start of the string... -philip