Re: Function that escapes special caracters from regular expressions
| From: | CC Zona | Date: | Sun, 07 Apr 2002 23:25:43 +0000 |
| Subject: | Re: Function that escapes special caracters from regular expressions | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-91968@lists.php.net to get a copy of this message | ||
In article <20020407231806.7696.qmail@pb1.pair.com>,
charlie@tizac.com (Charlie Killian) wrote:
> > Is there one?
> I don't now of one.
That's because PHP doesn't have "one", it has two:
<http://php.net/preg-quote> and <http://php.net/quotemeta>. (Read the docs
carefully; these functions escape slightly different character sets...)
--
CC