fork download
  1. import re
  2. a = ' 15159970 (30.12.2015), 15615115 (01.01.1970), 11224455, 55441123 '
  3. print( re.findall(r'(?<!\d)(?<!\d\.)\d+(?!\.?\d)', a) )
Success #stdin #stdout 0.02s 9548KB
stdin
Standard input is empty
stdout
['15159970', '15615115', '11224455', '55441123']