RE: [PHP] Extract HTML tags
| From: | Smith, Benjamin | Date: | Thu, 10 Oct 2002 02:26:27 +0000 |
| Subject: | RE: [PHP] Extract HTML tags | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-119488@lists.php.net to get a copy of this message | ||
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:nospam@mckenzies.net]
Sent: Thursday, 10 October 2002 7:43 AM
To: php-general@lists.php.net
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