Correct malformed regex