fork(1) download
  1. import re
  2. rx = r"(.*?)\s*(\d+) Kill\(s\)\s*"
  3. s = "Abc - 33 SR 11 Kill(s) P G - (Type-1P-G) 2 Kill(s) M 1 Kill(s) S - M9A CWS 1 Kill(s) 11 Kill(s)"
  4. print(re.findall(rx, s))
  5.  
Success #stdin #stdout 0.04s 9628KB
stdin
Standard input is empty
stdout
[('Abc - 33 SR', '11'), ('P G - (Type-1P-G)', '2'), ('M', '1'), ('S - M9A CWS', '1'), ('', '11')]