Convert `while` loop to regular expression
Clean up the page *before* uncommenting categories…otherwise the cleanup() just recomments them

I may be mistaken (since this seemed like a pretty critical bug that
was just..sitting there), in which case, please revert