fork download
  1. import re
  2. s = 'F(1,110) = 15.18'
  3. print(re.search(r'F\((\d+),(\d+)\)', s).groups())
  4. print(re.search(r'=\s*(\d+(?:\.\d+)?)', s).groups())
Success #stdin #stdout 0.02s 9516KB
stdin
Standard input is empty
stdout
('1', '110')
('15.18',)