fork download
  1. import re
  2. st='1.2.3 The Mismatch of Accommodation and Disparity and the Depths of Focus and of Field'
  3. print(["{}{}".format(x,y) for x,y in re.findall(r'(\d+)(?=(\.\d+))',st)])
Success #stdin #stdout 0s 23352KB
stdin
Standard input is empty
stdout
['1.2', '2.3']