401 regex pattern fix