There are a couple of ways you could do it, the proper way with a regular expression, 
or you could just kludge it using explode() and chucking out the stuff you did not 
need.

-----Original Message-----
From: Shawn McKenzie [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 10 October 2002 7:43 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Extract HTML tags


I've loaded an html file into a string.  What I'd like to do is create two
new strings:

first new string with the original string but remove all content from the
beginning of the file up to and including <body>, and then remove from the
end of file up to and including </body>

second new string only containing content after <head> up to and including
<body>

Any ideas on simple ways to do this?

TIA
-Shawn



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to