Possible Duplicate:
HTML Scraping in Php
I would like to know if is there any way to get from a webpage a specific string of text wich is updated every now and then using PHP. I´ve searched "all over the internet" and have found nothing. Just saw that preg_match could do it, but I didn't understand how to use it.
imagine that a webpage contains this:
<div name="changeable_text">**GET THIS TEXT**</div>
How can I do it using PHP, after having used file_get_contents
to put the page in a variable?
Thanks in advance :)