extract some text from html
Moderator: General Moderators
extract some text from html
I get source of some files. Then i need to extract fragments of text from there. What functions do you recommend to use?
- Jonah Bron
- DevNet Master
- Posts: 2764
- Joined: Thu Mar 15, 2007 6:28 pm
- Location: Redding, California
Re: extract some text from html
You have two options. You can use regex, or you can use the XML DOM. Using one over the other depends on how predictable the target page is (and whether or not the page is valid HTML). Do you have an example to give us?