note 92721 added to function.preg-match-all
| From: | BrandonSterne at osu1 dot php dot net | Date: | Wed, 05 Aug 2009 17:46:31 +0000 |
| Subject: | note 92721 added to function.preg-match-all | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-159133@lists.php.net to get a copy of this message | ||
@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.
----
Server IP: 208.69.120.35
Probable Submitter: 63.245.220.240
----
Manual Page -- http://www.php.net/manual/en/function.preg-match-all.php
Edit -- https://master.php.net/note/edit/92721
Del: integrated -- https://master.php.net/note/delete/92721/integrated
Del: useless -- https://master.php.net/note/delete/92721/useless
Del: bad code -- https://master.php.net/note/delete/92721/bad+code
Del: spam -- https://master.php.net/note/delete/92721/spam
Del: non-english -- https://master.php.net/note/delete/92721/non-english
Del: in docs -- https://master.php.net/note/delete/92721/in+docs
Del: other reasons-- https://master.php.net/note/delete/92721
Reject -- https://master.php.net/note/reject/92721
Search -- https://master.php.net/manage/user-notes.php