AntiPattern Name: Parsing HTML with regular expressions
Type: Development
Problem: Extracting information from HTML text, such as elements or groups of elements with a specific property.
Context: Programmer understands how to use regular expressions and sees that HTML looks fairly regular and easy to parse using this tool.
Causes:
Resulting Context: Regular expression may work for most cases, but fails on oddly structured but valid HTML or broken HTML, both of which are all-too-common on the Wild Wild Web.
Common Resulting problems:
See also: ParsingHtml, http://stackoverflow.com/a/1732454/699224 for another take on this anti-pattern