Forum Moderators: coopster
<script>.....</script>
<title>....</title>
<h2 class=a> // Trim all the lines above , and keep below.
<h2 class=a>
<h2 class=a>
<h2 class=a>
<h2 class=a>
<h2 class=a>
My code is:
$output = eregi_replace("(.*)<h2 class=a>", "", $output);
When it runs, it trims all pages until the last <h2 class=a>, instead of the first <h2 class=a>.
Can anyone tell me how to locate the first <h2 class=a> in the page?
Thanks a lot!