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
>
>
>
--
PHP General Mailing List (http:
Is there any string function to put backslashes on any characters that are
used in regular expressions? IE ()[];.^*$ etc.
Thank you,
Taylor
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
2 matches
Mail list logo