Re: preg match compilation error
| From: | Curt Zirzow | Date: | Mon, 27 Oct 2003 23:40:20 +0000 |
| Subject: | Re: preg match compilation error | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-167810@lists.php.net to get a copy of this message | ||
* Thus wrote Marek Kilimajer (kilimajer@webglobe.sk):
> Do you realy want to use [ and ] as patern delimiters? My quess is that
> you want to use it for defining character class. Then the only character
> that must be escaped is -
>
> '/[^a-z0-9,._+()\-]/i'
actually, you don't even need that escape. It has the exception of
being the range character if it is either the first or last
character in the class.
Curt
--
"My PHP key is worn out"
PHP List stats since 1997:
http://zirzow.dyndns.org/html/mlists/