I want to extract a number after every ":" (colon) in a string using python 3.5
my string is:
x= "RTD - Shanghai Indices - STD DLY - Indices - 11054 - ID:1053 (INACTIVE) RTD - SIX Swiss incl. SWX Europe - STD L1 - Equity - 10969 - ID:1096 (INACTIVE)"
I have used:
re.findall('\d+', x)
but this returns all the number which is:
['11054', '1053', '1', '10969', '1096']
But the final result should be:
[1053, 1096]