Run
import re pattern = '\s+' string = 'HelloWorld' result = re.split(pattern, string) print(result)
Output