You can do this with re.findall() :
>>> s = '\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s19,301\s\s\s\s\s\s\s\s\s14,856\s\s\s\s\s\s\s\s18,554'.replace('\\s',' ') >>> re.findall(r' +|[^ ]+', s) [' ', '19,301', ' ', '14,856', ' ', '18,554']
You said "space" in the question, so the template works with space. To match spaces of any space character you can use:
>>> re.findall(r'\s+|\S+', s) [' ', '19,301', ' ', '14,856', ' ', '18,554']
A pattern matches one or more space characters or one or more characters without spaces, for example:
>>> s=' \t\t ab\ncd\tef g ' >>> re.findall(r'\s+|\S+', s) [' \t\t ', 'ab', '\n', 'cd', '\t', 'ef', ' ', 'g', ' ']