Re: more chars for quotemeta()
| From: | Stig Bakken | Date: | Fri, 04 Jun 1999 14:31:10 +0000 |
| Subject: | Re: more chars for quotemeta() | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-6538@lists.php.net to get a copy of this message | ||
On Fri, 4 Jun 1999, Andrey Zmievski wrote:
> PCRE uses a couple more characters for the regular expression syntax, like =,
> !, and >. Shouldn't quotemeta() escape them too? If no one minds, I will go
> ahead and add them.
I'm not sure if it is a good idea to change quotemeta(), since it has no
un-quoting function, and no documented intention. I'm pretty sure it'd be
a compatibility problem. Perhaps a preg_quote() function instead?
- Stig