Hi!
For example, there is some part of HTML file:
<p class="results">
<a class="result_doctype"></a>
<a class="result_url" href="http://www.phpbuilder.com/">
</p>
And I want to get the string between <p class="results"> and </p>, so my script is:
preg_match('/<p class=\"results\">(.*)<\/p>/', $contents, $matches);
But it does not work!
I look for some doc, and find "." cannot find string with new line.
So how can I use preg_match with string blocks?
Thanks!
Mike