Handle regex cases correctly