import res = 'F(1,110) = 15.18'print(re.search(r'F\((\d+),(\d+)\)', s).groups())print(re.search(r'=\s*(\d+(?:\.\d+)?)', s).groups())
Standard input is empty
('1', '110') ('15.18',)
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!