import re


def get_confidence(s) -> int:
    """
    Using the input string (for x_wconf), parse out the confidence value and return
    the confidence (100 - confidence)
    """
    conf_rgx = r'''(?<=x_wconf )([0-9]+)'''
    match = re.search(conf_rgx, s.get('title'))
    return 100 - int(match.group(0)) if match else 100