Re: any string function to...
| From: | Oscar F | Date: | Tue, 24 Sep 2002 00:46:14 +0000 |
| Subject: | Re: any string function to... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-117334@lists.php.net to get a copy of this message | ||
Taylor,
You can use: quotemeta($string) for . \\ + * ? [ ^ ] ( $ ).
hth. Oscar F.-
Taylor York wrote:
Is there any string function to put backslashes on any characters that are used in regular expressions? IE ()[];.^*$ etc. Thank you, Taylor