SyntaxFix
Write A Post
Hire A Developer
Questions
The most simple way:
>>> import re >>> string = 'This is a string, with words!' >>> re.findall(r'\w+', string) ['This', 'is', 'a', 'string', 'with', 'words']