Evidently, the broken regex worked by accident, for it allowed something its author didn't intend.