fix regex anchoring