in reply to Parse HTML into multidimensional array
First off, parsing HTML using regexes is pretty much universally regarded as a bad idea. It can work, but it's usually easier to use one of the HTML modules. Especially if the HTML is likely to change in the future.
Having said that, get the full HTML that get returns, and look at your regexes. Your expected output suggests you just wanted the first data, but you have the g qualifier on them which means the entire input will be checked for matches. That might be why you are getting much more than you expected.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Parse HTML into multidimensional array
by mazdajai (Novice) on Jul 14, 2015 at 21:38 UTC | |
by tangent (Parson) on Jul 14, 2015 at 22:01 UTC | |
by GotToBTru (Prior) on Jul 15, 2015 at 14:07 UTC |