I want to use ereg() or preg_match (or whatever works) to separate out the first paragraph of a chunk of html which would be everything between the first set of <p></p> tags, including the opening and closing p tags and any other inline html tags they contain. In the second substring I want to get everything after the first paragraph. So something like
ereg("(paragraph_1)(paragraph_2)",$var,$regs);
Mil gracias if anyone can help me out here.