View Single Post

  #5 (permalink)  
Old 10-28-2003
Curt Zirzow
 
Posts: n/a
Default Re: [PHP] preg match compilation error

* 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/
Reply With Quote