def numeric_part(s):

    m = re_numeric_part.match(s)
    if m:
        return int(m.group(1))
    return None
Returns the leading numeric part of a string.
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/MySQL-python-1.2.5/MySQLdb/connections.py/numeric_part