def unmatched ( match ) : start , end = match . span ( 0 ) return match . string [ : start ] + match . string [ end : ]
python regex return beggining of match
Return unmatched part of re . Match object .
def unmatched(match):
    """Return unmatched part of re.Match object."""
    start, end = match.span(0)
    return match.string[:start]+match.string[end:]