Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
PHP-TROLL
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
PHP-TROLL
17y ago
I'm not talking about parsing HTML. I'm talking about getting data out of HTML which is completely different. One doesn't need to guess at all possible combinations of badness using a regex, you just need to find the data you need and adjus
2.
▲
by
PHP-TROLL
17y ago
Why is it better? I think HTML parsers have their place, but I don't understand why people think regular expressions are not a valid tool for getting data out of HTML. HTML parsers are only an appropriate solution if the HTML is valid, well
3.
▲
by
PHP-TROLL
17y ago
Yeah when I said XML parsers I was speaking generically. I tried many HTML and XML parsers as well has HTML sanitizers. They worked, maybe, 60% of the time. Hpricot regularly segfaulted, beautifulsoup didn't even begin to work. Even if I ra
4.
▲
by
PHP-TROLL
17y ago
This is total bullshit. This is assuming that you are parsing well formatted, modern HTML. Anyone who has had to data mine HTML on a regular basis knows regular expressions are the only way to go because most web pages are clusterfucks of i
5.
▲
by
PHP-TROLL
17y ago
I grew up in Detroit, so I'm a bit jaded, but I wouldn't recommend it. Many of the people who live in Detroit don't see the blight as a problem and actively fight anyone who tries to change Detroit. Plus the city council is beyond dysfuncti
6.
▲
by
PHP-TROLL
17y ago
Bollocks to your bollocks. You're reading comprehension must be very low. "HTML is a mark-up language for documents. Its simplicity has enabled the spread of the web. In addition it provided a means for some semantic marking BLAH BLAH BLAH.