corrected regex in case