Corrected error regex