I don't really have any problems with using some well placed regexes. There is a technical problem with matching ```<body.*?>``` and ```</body.*?>```, although I admit a bit unlikely one in this case: attributes may contain the ```>``` character, so if the body has an attribute containing this character, for example ```<body data-attr="...>...">````, the regex will break the HTML. That's why it's generally not so good matching html with regexes.