4 ms·
You can't parse html with regular expressions :) https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#173
by gostsamo 5y ago
You can't parse html with regular expressions :)
https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454 https://stackoverflow.com/questions/1732348/regex-match-open...
- andybak 5y agoAnd the obligitory caveat from the comments: > While arbitrary HTML with only a regex is impossible, it's sometimes appropriate to use them for parsing a limited, known set of HTML.
- hnbad 5y agoThe emphasis here is on "known". The tool is general purpose (i.e. handling unknown HTML) so using regexes would be ill-advised.
- bmn__ 5y ago"Oh Yes You Can Use Regexes to Parse HTML!" https://stackoverflow.com/a/4234491 https://stackoverflow.com/a/4234491