<human>:  re.split with spaces in python
<bot>: 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.