<human>:  python split string based on regular expression
<bot>: Here is some code to split string `str1` on one or more spaces with a regular expression

re.split(' +', str1)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.