regex missing terminator char