> I have search around on google/php.net to try and find a way to remove
> <body>, everything above ,</body> and everything below it in a html
page.

FYI on the two methods I suggested:

preg_match("/<body>(.*)<\/body>/i",$html_text,$matches);
eregi("<body>(.*)</body>",$html_text,$matches);

Preg vs. Ereg 
        name            total time      average iteration time  
100%    Preg Method 59ms                5.906E-005  
339%    Ereg Method 200ms       0.00020036  

Each method was called 10,000 times. 

---John Holmes...


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

Reply via email to