fork(24) download
  1. import re
  2. s = "107S33M15H\n33M100S\n12M100H33M"
  3. print(re.findall(r"(\d+)M", s))
Success #stdin #stdout 0.01s 9016KB
stdin
Standard input is empty
stdout
['33', '33', '12', '33']