import res = "Chapter 1: Black brown fox 45"print(re.findall(r'\bChapter\s*\d+\b|\b(\w+)\b',s))
Standard input is empty
['', 'Black', 'brown', 'fox', '45']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!