FAM Mug Logo

Find a Mug!



Or...Create Your Own!

Curated Collections: Valentine's Day | Coffee Lovers | Bosses' Day | More to come...!
...

Parse HTML with Regex - Tony The Pony Coffee Mug

You can't parse [X]HTML with regex. Because HTML can't be parsed by regex. Regex is not a tool that can be used to correctly parse HTML. As I have answered in HTML-and-regex questions here so many times before, the use of regex will not allow you to consume HTML. Regular expressions are a tool that is insufficiently sophisticated to understand the constructs employed by HTML. HTML is not a regular language and hence cannot be parsed by regular expressions.
$13.85