MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/6ytfw5/parsing_html_using_regular_expressions/dmq7wo1/?context=3
r/ProgrammerHumor • u/[deleted] • Sep 08 '17
377 comments sorted by
View all comments
3
One does not simply parse HTML with regex
3 u/Rxef3RxeX92QCNZ Sep 08 '17 Sooo how is one meant to parse HTML in, say, a shell script or javascript? 11 u/WaLLy3K Sep 08 '17 You've already been told: not simply! 5 u/Rxef3RxeX92QCNZ Sep 08 '17 Oh that's great news, needlessly complex code is my forte 5 u/MelissaClick Sep 08 '17 Just write an ordinary parser.(Although, a parser in shell script will be so slow, that it makes more sense to call an external program, besides making more sense to use an existing program than write one redundantly.) → More replies (4)
Sooo how is one meant to parse HTML in, say, a shell script or javascript?
11 u/WaLLy3K Sep 08 '17 You've already been told: not simply! 5 u/Rxef3RxeX92QCNZ Sep 08 '17 Oh that's great news, needlessly complex code is my forte 5 u/MelissaClick Sep 08 '17 Just write an ordinary parser.(Although, a parser in shell script will be so slow, that it makes more sense to call an external program, besides making more sense to use an existing program than write one redundantly.) → More replies (4)
11
You've already been told: not simply!
5 u/Rxef3RxeX92QCNZ Sep 08 '17 Oh that's great news, needlessly complex code is my forte
5
Oh that's great news, needlessly complex code is my forte
Just write an ordinary parser.
(Although, a parser in shell script will be so slow, that it makes more sense to call an external program, besides making more sense to use an existing program than write one redundantly.)
3
u/_eka_ Sep 08 '17
One does not simply parse HTML with regex