Extract printable text from web page using preg_match

From: Date: Tue, 27 Feb 2007 17:47:02 +0000
Subject: Extract printable text from web page using preg_match
Groups: php.general 
Request: Send a blank email to php-general+get-249507@lists.php.net to get a copy of this message
I am trying to write a regex function to extract the readable (visible, screen-rendered) portion of any web page. Specifically, I only want the text between the <body> tags, excluding any <script> or <style> tags within the document, also excluding comments. Has anyone here seen such a regex? Is it possible to do in one expression? ...Rene

« previous php.general (#249507) next »