import rea = ' 15159970 (30.12.2015), 15615115 (01.01.1970), 11224455, 55441123 'print( re.findall(r'(?<!\d)(?<!\d\.)\d+(?!\.?\d)', a) )
Standard input is empty
['15159970', '15615115', '11224455', '55441123']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!