Hi folks
I'm primarily a Perl and C coder, just getting into PHP. I have an issue dealing with extracting content between matched tags, i.e. given the example
<html>
<center>
<p>something</p>
</center>
<p>something else</p>
</html>
I want to extract <center>
<p>something</p>
</center> and drop the rest. I figure there's got to be something built-in, or a regex I can come up with, which can do this.
The <center> tag, btw, will change depending on the document I am parsing...
thanks,
-ben