Human: re.split with spaces in python Assistant: 
Here is some code to split string `s` based on white spaces

re.findall('\\s+|\\S+', s)

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