fork download
  1. import re
  2. res = re.findall(r'^foo (\S+(?:\s+\S+)*) (\S+) baz (\d+)', 'foo hello world blah blah baz 33')
  3. print(res)
Success #stdin #stdout 0.02s 9016KB
stdin
Standard input is empty
stdout
[('hello world blah', 'blah', '33')]