Possible duplicate:
HTML Screening in Php
I would like to know if there is a way to get a specific line of text from a web page that is updated every time using PHP. I searched "all over the Internet" and found nothing. I just saw that preg_match can do this, but I did not understand how to use it.
Imagine the web page contains the following:
<div name="changeable_text">**GET THIS TEXT**</div>
How can I do this with PHP, after using file_get_contents
to put the page in a variable?
Thanks in advance:)
source share