fork download
  1. import re
  2.  
  3. regex = r"F\((\d+),(\d+)\) = (\d+(?:\.\d+)?)"
  4. s = "F(1,110) = 15.18"
  5. print(re.findall(regex, s))
Success #stdin #stdout 0.02s 9348KB
stdin
Standard input is empty
stdout
[('1', '110', '15.18')]