> Which of course does not work. I cannot express the fact: sentence > have 0 or 1 whitespace, separation of group have two or more > whitespaces. > > Any suggestion ? Thanks a bunch ! How about this: >>> import re >>> s = ' hello world how are you' >>> re.split(r"\s{2,}",s) ['', 'hello world', 'how are you']