fork download
  1. import re
  2. s = "Chapter 1: Black brown fox 45"
  3. print(re.findall(r'\bChapter\s*\d+\b|\b(\w+)\b',s))
Success #stdin #stdout 0.01s 9024KB
stdin
Standard input is empty
stdout
['', 'Black', 'brown', 'fox', '45']