It also improves the regex to tolerate spaces before the `</body>` tag,
as some templates have (proper) indentation for the tag.
It also improves the regex to tolerate spaces before the `</body>` tag,
as some templates have (proper) indentation for the tag.