Hey guys/gals just had a quick question ...
Say I have a page with THREE instances of the same word.
And this code:
$contents = preg_replace('Link.*<\/html>/si', '', $contents);
That code WORKS but grabs the LAST instance of the word.
I'm trying to grab the FIRST instance.
So if you have:
Link #1
Link #2
Link #3
I want to stop at link #1 and delete everything from there on out to </html>
Any help would be greatly appreciated, thanks.