Your rule doesn't make any sense. Parsing HTML is harder than parsing XML ... it's much less regular. Always using regexp when you hear parsing is like always using a hammer, no matter the task. If all you have is a hammer it's understandable, if you have a full toolbox it's silly.