note 92721 deleted from function.preg-match-all by danbrown
| From: | danbrown@php.net | Date: | Wed, 05 Aug 2009 17:46:58 +0000 |
| Subject: | note 92721 deleted from function.preg-match-all by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-159134@lists.php.net to get a copy of this message | ||
Note Submitter: Brandon Sterne
----
@phektus
Re:
> If you'd like to include DOUBLE QUOTES on a regular expression for use with
> preg_match_all, try ESCAPING THRICE, as in: \\\"
Your thrice escaped double quote is actually an escaped backslash and an escaped double quote, so
your pattern allows both. Most PHP installations escape quotes when populating the superglobals,
e.g. $_GET, so if you are using string data from the superglobals directly, you will have
backslashes in there that you'll need to handle.