php - Parse HTML without xpath -


i'm trying create simple tool parse html files.

specifically, need name attributes out of div tags.

my html string varies , don't have control on it, if try , use xpath tend errors html not 100% written correctly.

any ideas?

thanks,

there great class called php simple html dom parser on http://simplehtmldom.sourceforge.net/

works fine invalid html, needs lot of memory parsing long html-files.


Comments

Popular posts from this blog

haskell - Using filter on an item in a list? -

c# - When does PreApplicationStartMethod actually get triggered to run? -

c# - Binding attached property to IEnumerable -