On Sep 13, 12:52 am, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > multipleSpaces = re.compile(u'\\h+') > > > importantTextString = '\n \n \n \t\t ' > > importantTextString = multipleSpaces.sub("M", importantTextString) > > what's "\\h" supposed to mean?
Match *h*orizontal whitespace, I guess ... looks like the maintainer of the re equivalent in some other language has far too much spare time :-) -- http://mail.python.org/mailman/listinfo/python-list