我不顾一切地寻找解决方案来获得这个文本字符串
<h6>First pane</h6>
... pane content ...
<h6>Second pane</h6>
Hi, this is a comment.
To delete a comment, just log in and view the post's comments.
There you will have the option to edit
or delete them.
<h6>Last pane</h6>
... last pane content ...解析成PHP数组。
我需要把它分离出来
1.
1.0=> First pane
1.1=> ... pane content ... 
2.
2.0=> Second pane
2.1=> Hi, this is a comment.
    To delete a comment, just log in and view the post's comments.
    There you will have the option to edit
    or delete them.
3.
3.0=> Last pane
3.1=> ... last pane content ...发布于 2010-12-04 00:24:20
您不应该尝试使用正则表达式来解析HTML。这注定会给除了最简单的HTML之外的所有人带来很多痛苦和不快,并且如果文档结构中有任何变化,它将立即崩溃。使用合适的超文本标记语言或DOM解析器,如php的DOMDocument http://php.net/manual/en/class.domdocument.php
例如,您可以使用getElementsByTagName http://www.php.net/manual/en/domdocument.getelementsbytagname.php获取所有h6
https://stackoverflow.com/questions/4347372
复制相似问题