3 ms·
To be pedantic this isn't parsing HTML with a Regex. This is using Regexes to write a HTML parser. You can definitely use Regexes in an HTML parser but that doe
by kevincox 6y ago
To be pedantic this isn't parsing HTML with a Regex. This is using Regexes to write a HTML parser. You can definitely use Regexes in an HTML parser but that doesn't mean that you can parse HTML with just a Regex.
- dokem 6y agoWhich is how these things usually go. You tokenize with regex then parse the token stream.
- poisson_myfish 6y agoI mean, I've seen parsers made up of Regex only. My eyes hurt after that.