Report question

Question: Regex in javascript fails every other time with identical input