int(''.join(''.join(x) for is_number, x in itertools.groupby(
    'dfsd98sd8f68as7df56', key=str.isdigit) if is_number is True))
Splitting a string where it switches between numeric and alphabetic characters