Fix for regex in analyzeResult()