note 101715 added to function.preg-replace
| From: | Rizzler_ at osu1 dot php dot net | Date: | Thu, 06 Jan 2011 15:33:36 +0000 |
| Subject: | note 101715 added to function.preg-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-175490@lists.php.net to get a copy of this message | ||
Would it be possible to use preg_replace to remove the line of code a phrase is found in and every
other line after it without knowing what tag the phrase would be in beforehand? eg. say theres an
<a href..etc and in that line of code is the phrase, remove that line and everything after it.
But it could also be found within say a <p> or <b> tag.
----
Server IP: 69.147.83.197
Probable Submitter: 109.154.65.166
----
Manual Page -- http://www.php.net/manual/en/function.preg-replace.php
Edit -- https://master.php.net/note/edit/101715
Del: integrated -- https://master.php.net/note/delete/101715/integrated
Del: useless -- https://master.php.net/note/delete/101715/useless
Del: bad code -- https://master.php.net/note/delete/101715/bad+code
Del: spam -- https://master.php.net/note/delete/101715/spam
Del: non-english -- https://master.php.net/note/delete/101715/non-english
Del: in docs -- https://master.php.net/note/delete/101715/in+docs
Del: other reasons-- https://master.php.net/note/delete/101715
Reject -- https://master.php.net/note/reject/101715
Search -- https://master.php.net/manage/user-notes.php