note 99421 added to function.preg-replace

From: Date: Mon, 16 Aug 2010 17:57:13 +0000
Subject: note 99421 added to function.preg-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-171738@lists.php.net to get a copy of this message
I have a paragraph of text (fairly large, say 500 words) with all possible punctuations like .,:;'"/ !%&()\ etc... I want to search for a string (may be one word or 2 or 3 words) within that paragraph, so that the result comes out as google shows... 5-6 words before the matched string and say 40 words after it - just like a narration bringing out the portion where the desired pattern is found... please help me out... ---- Server IP: 69.147.83.197 Probable Submitter: 59.93.240.98 ---- Manual Page -- http://www.php.net/manual/en/function.preg-replace.php Edit -- https://master.php.net/note/edit/99421 Del: integrated -- https://master.php.net/note/delete/99421/integrated Del: useless -- https://master.php.net/note/delete/99421/useless Del: bad code -- https://master.php.net/note/delete/99421/bad+code Del: spam -- https://master.php.net/note/delete/99421/spam Del: non-english -- https://master.php.net/note/delete/99421/non-english Del: in docs -- https://master.php.net/note/delete/99421/in+docs Del: other reasons-- https://master.php.net/note/delete/99421 Reject -- https://master.php.net/note/reject/99421 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#171738) next »