Re: still not friends with RegExps..
| From: | CC Zona | Date: | Tue, 15 May 2001 20:19:42 +0000 |
| Subject: | Re: still not friends with RegExps.. | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-52926@lists.php.net to get a copy of this message | ||
In article <025c01c0dd7a$3b75d320$6a45c5d5@jaguar>,
pgerzson@freestart.hu ("Gyozo Papp") wrote:
> > > There is a function quotemeta() which escapes all special regexp
> > > character
> > > such as:
> > > . \ + * ? [ ^ ] ( $ )
> > > with a '\' except one the '|' pipe.
> >
> > Forget quotemeta(). Use preg quote() instead.
>
> Ok, now it's time to get familiar with preg?
No, now it's time to get familiar with the online manual
<http://php.net/pgre-quote>, where you would quickly
discover that
preg_quote can be used even by somone with zero knowledge of PCRE syntax.
--
CC