def getReadErrors(rescueLine):
    """parse ddrescue output line for values of readErrors"""
    lineItems = rescueLine.split(',')
    for item in lineItems:
        if 'errors:' in item:
            reEntry = item.split(':')
            readErrors = int(reEntry[1].strip())
    return readErrors
