update regex for error parsing