fork(4) download
  1. import re
  2. text = 'This is a small example Text, showcasing my desired output.'
  3. print(re.findall(r'\W*(?:\w+\W+){1,4}', text))
Success #stdin #stdout 0.01s 9024KB
stdin
Standard input is empty
stdout
['This is a small ', 'example Text, showcasing my ', 'desired output.']