r/ProgrammerHumor • • Sep 08 '17

Parsing HTML Using Regular Expressions

Post image
11k Upvotes

377 comments sorted by

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