note 99421 rejected from function.preg-replace by mazzanet

From: Date: Tue, 17 Aug 2010 01:17:52 +0000
Subject: note 99421 rejected from function.preg-replace by mazzanet
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-171744@lists.php.net to get a copy of this message
Note Submitter: mahul000 at gmail dot com ---- 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...

« previous php.notes (#171744) next »