in reply to Re: Parsing and searching HTML codein thread Parsing and searching HTML code
That prevents the regex from being greedy, else the match would end at the very last $search_end--way beyond what you wanted.