MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/6ytfw5/parsing_html_using_regular_expressions/dmqb0bo/?context=3
r/ProgrammerHumor • u/[deleted] • Sep 08 '17
377 comments sorted by
View all comments
Show parent comment
1
with javascript you would likely use some jquery-like framework
in a shell script try using xmllint with xpath
xmllint --xpath '//html/body/p' file.html
View all comments
Show parent comment
1
u/dzuczek Sep 08 '17
with javascript you would likely use some jquery-like framework
in a shell script try using xmllint with xpath
xmllint --xpath '//html/body/p' file.html