Where the wild regex patterns come from...
import re pattern = r'\b\w+\b' print(re.findall(pattern, 'hello world'))
For more information, see our more info page.