Hi I want to parse only digit , for example I parse numbers of users sessions last 5 min , userSes = "12342 last 5 min" , I want to parse only 12342 (this number change every 5 min) , but when I parse this data result is 12342 and 5 ( this number is "from last 5 min " 's number) can any one help me ?
x= ('12342 from last 5 min ')
print(''.join(filter(lambda x: x.isdigit(),x)))