3 ms·
No. Technically, you cannot parse HTML with regular expressions. You can find certain strings in HTML which is a different thing.
by michaelhoffman 14y ago
No. Technically, you cannot parse HTML with regular expressions. You can find certain strings in HTML which is a different thing.
- mistercow 14y agoAt the very least, you can use regex to match individual characters as you scan the HTML for parsing. It's an inefficient and stupid way to do it, but it is still something you can do. And in that case, regex is technically a tool that you are using to parse HTML, even though 99.9% of the work is being done by non-regex code.