MRAB, "MRAB" <pyt...@mrabarnett.plus.com> wrote: > >>> import re > >>> re.split(r'(\s+)', "Hello world!") > ['Hello', ' ', 'world!']
That was exactly (EXACTLY!) the solution I was looking for. Thank you! Malcolm -- http://mail.python.org/mailman/listinfo/python-list