<div id="c">
Bar
</div>
Je veux trouver tous les objets dans id = "a" et eteint estPhp expression régulière pour correspondre à une div
<div id="a">
<div id="b">
Foo
</div>
<div id="m">
Bar
</div>
</div>
grâce Geat.
voir dom html simple: http://simplehtmldom.sourceforge.net/ – Sarfraz
Voir [RegEx balises correspondent ouvertes sauf XHTML balises autonomes] (http : //stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags) –
Cela ne finira jamais ... –