I would like to get some integers from a string (the 3rd one). Preferable without using regex.
I saw a lot of stuff.
xp = '93% (9774/10500)'
[93, 9774, 10500]
>>> new = [int(s) for s in xp.split() if s.isdigit()]
>>> print new
>>> int(filter(str.isdigit, xp))
Since the problem is that you have to split on different chars, you can first replace everything that's not a digit by a space then split, a one-liner would be :
xp = '93% (9774/10500)' ''.join([ x if x.isdigit() else ' ' for x in xp ]).split() # ['93', '9774', '10500']