Where's the error?
Bror Johansson
bror.johansson at avionics.saab.se
Tue Dec 4 06:48:43 EST 2001
I have tried, retried, and retried again to understand why Python 2.1 tells
me this:
Traceback (most recent call last):
File "D:\Src\Python\renamevobtag.py", line 12, in getlsvobresults
regline =
re.compile('^(\*)?\s+\\([^\s]+)\s+\\\\([^\s]+)\s+(p(rivate)|(ublic))\s*$')
File "d:\python21\lib\sre.py", line 90, in compile
return _compile(pattern, flags)
File "d:\python21\lib\sre.py", line 136, in _compile
raise error, v # invalid expression
error: unbalanced parenthesis
when approaching this line:
regline =
re.compile('^(\*)?\s+\\([^\s]+)\s+\\\\([^\s]+)\s+(p(rivate)|(ublic))\s*$')
Can anyone help me clear my eyesight?
I can of course switch over to 'split', but I want to get rid of the extra
backslashes.
/BJ
More information about the Python-list
mailing list