fork(2) download
  1. import re
  2. s = ["The job ABS is scheduled by Bob.", "The job BFG is scheduled by Alice."]
  3. rx = re.compile(r'(?<=The job )\w+')
  4. user = tuple(map(lambda x: x.group() or "", map(rx.search, s)))
  5. print(user)
Success #stdin #stdout 0.02s 9488KB
stdin
Standard input is empty
stdout
('ABS', 'BFG')