fork download
  1. import re
  2.  
  3. s = 'c:\DFT17\BP-550.01.04.159 Proushina_6.7 мм_st3_8sht.DFT'
  4. print(re.findall('(\d+[.,]\d*)\s*(mm|мм)', s))
Success #stdin #stdout 0.01s 27728KB
stdin
Standard input is empty
stdout
[('6.7', 'мм')]