adjust error parsing regex