Extracting HTML from a file

From: Date: Tue, 20 May 2003 07:37:16 +0000
Subject: Extracting HTML from a file
Groups: php.general 
Request: Send a blank email to php-general+get-148254@lists.php.net to get a copy of this message
Hi, using the following code I am extracting any HTML from a file which occurs between the two tags <!-- beginIsEditable --> and <!-- endIsEditable --> preg_match_all('|<!-- beginIsEditable -->(.*?)<!-- endIsEditable -->|is', implode('', file('../'.$_GET[file_name])), $matches = array(), PREG_SET_ORDER); $script = stripslashes(htmlentities($matches[0][0])); How can I modify this so that it extracts the HTML between these tags, rather than the HTML including these tags? Thanks for your help

« previous php.general (#148254) next »