Fixed regexp getHistory()