This seems to be a python bug (works fine in vim). The source of the problem is the bit (\ s * ...) +. Basically, you cannot do (\s*)+ , which makes sense because you are trying to repeat something that might be null.
>>> re.compile(r"(\s*)+") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/re.py", line 180, in compile return _compile(pattern, flags) File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/re.py", line 233, in _compile raise error, v
However (\s*\1) should not be null, but we only know this because we know that in \ 1. Python doesn't seem to ... this is weird.
mb14 Sep 09 '10 at 9:42 on 2010-09-09 09:42
source share