regex help and file question

From: Date: Sat, 07 Aug 2004 19:24:46 +0000
Subject: regex help and file question
Groups: php.general 
Request: Send a blank email to php-general+get-193096@lists.php.net to get a copy of this message
Hi, I am just starting out with regex (and classes) so am not sure how to do this... I am seeing if a HTML file exists, if yes, I am using file_get_contents to get the entire HTML file into a string. In the HTML file I already have this: <!-- Start header --> <html> <body> whatever you want comes here <!-- End header --> How do I use a regex to span these multiple lines and simply cut everything (including the start..end part)from <!-- Start header --> to <!-- End header --> Second question: I am using file_get_contents, is it better to use this than file() or fread() ? Thanks, Mag ===== ------ - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-) __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail

« previous php.general (#193096) next »