Re: [PHP] Extract HTML tags

2002-10-09 Thread Jonathan

try something along the lines of:

preg_match('/]*>([.]*)/im', $string, $foo);

$foo[1] = 'your body string';

preg_match('/([.]*) 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 , and then remove from the
> end of file up to and including 
> 
> second new string only containing content after  up to and including
> 
> 
> 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




RE: [PHP] Extract HTML tags

2002-10-09 Thread Smith, Benjamin

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 , and then remove from the
end of file up to and including 

second new string only containing content after  up to and including


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