note 96782 rejected from function.preg-quote by thiago
| From: | thiago@php.net | Date: | Tue, 16 Mar 2010 19:16:51 +0000 |
| Subject: | note 96782 rejected from function.preg-quote by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-167110@lists.php.net to get a copy of this message | ||
Note Submitter: pavel at icewarp dot com
----
I am wondering why / is the default DELIMITER(This is the usual delimiter for the text part of a
regular expression. If the sought-after text contains slashes, it's sometimes easier to use
pipe symbols (|) for delimiters, but this is rare. Here are simple examples of the slash operator -
quotation from perl regex site ) ! I think the delimiter should be \.Also preg_quote('/')
will do nothing ( returns / ),so then preg_match fails! Can anyone tell my why ?