note 70759 added to reference.pcre.pattern.modifiers
| From: | squeegee at osu1 dot php dot net | Date: | Thu, 26 Oct 2006 19:55:12 +0000 |
| Subject: | note 70759 added to reference.pcre.pattern.modifiers | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-119149@lists.php.net to get a copy of this message | ||
If ungreedy doesn't appear to always be working for you (say you're looking for the last
double-quoted phrase in a string, and once in a while the string might have more than one such
phrase, maybe you need to be searching from right to left instead. In that case, just use strrev on
the pattern and string before sending it through preg_* then strrev the matches you get.
----
Server IP: 64.71.164.2
Probable Submitter: 66.188.26.156
----
Manual Page -- http://www.php.net/manual/en/reference.pcre.pattern.modifiers.php
Edit -- https://master.php.net/note/edit/70759
Del: integrated -- https://master.php.net/note/delete/70759/integrated
Del: useless -- https://master.php.net/note/delete/70759/useless
Del: bad code -- https://master.php.net/note/delete/70759/bad+code
Del: spam -- https://master.php.net/note/delete/70759/spam
Del: non-english -- https://master.php.net/note/delete/70759/non-english
Del: in docs -- https://master.php.net/note/delete/70759/in+docs
Del: other reasons-- https://master.php.net/note/delete/70759
Reject -- https://master.php.net/note/reject/70759
Search -- https://master.php.net/manage/user-notes.php