Re: Processing a fetched external page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Donovan Hutchinson wrote:

Hi,

I'm working on a project that takes the content of a URL and does stuff with the content. I've managed to extract the target url's html, and am using str_replace to fix links, stylesheets etc. However, i'm stumped when it comes to processing the text content.

Would anyone know how to isolate displayed text (anything in the body, paragraph text, headings etc) and then manipulate this text on a word by word basis?

Any suggestions appreciated,

Don

Well, this kind of regluar expressions should be able to find what's in a <p> tag.
/<p[^>]*>(.*?)<\/p>/


--
paperCrane <Justin Patrin>

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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux