fork download
  1. import re
  2. s = "Employee ID DF856, Year 2016, Department Finance, Team 2, Location 112 20161 12016 120162"
  3. print(re.findall(r'(?<!\d)(?!2016(?!\d))\d{3,}', s))
  4.  
  5. print([x for x in re.findall(r'\d{3,}', s) if x != "2016"])
  6.  
Success #stdin #stdout 0.02s 27712KB
stdin
Standard input is empty
stdout
['856', '112', '20161', '12016', '120162']
['856', '112', '20161', '12016', '120162']