I have strings of the form "V70N-HN" and I just need to get the 70 out. The first characters can be any number of letters, or none at all. Same goes for the final characters. I've used variations of this in the past, but it looked cleaner in python 2 without the 'join' and 'list' thrown in the mix:
>>> a = "V70N-HN"
>>> i = int(''.join(list(filter(lambda x: x.isdigit(), a))))
>>> i
70
Anyways, this is not very pythonic anymore. Is there an easier, more understandable way to achieve the same result?