Fixed regex for categories and pages