3 ms·
It's actually really simple. You can't parse HTML with regex. You can parse text blobs with regex. If your input looks like HTML but is really a text blob, y
by JulianMorrison 17y ago
It's actually really simple.
You can't parse HTML with regex.
You can parse text blobs with regex.
If your input looks like HTML but is really a text blob, you can parse it with regex.
- btilly 17y agoNo, it is even simpler than that. Regular expressions are for matching patterns, not parsing. They don't parse HTML. They don't parse text blobs. They don't parse anything. They just match.