python 在小于2.7.5版本中的 re模块出现 nothing to repeat 错误
在运行带正则python程序时,发生一个错误如下:
Traceback (most recent call last):
File "multi_views_statistics_9.10.py", line 80, in ?
retcode = re.match('^\+{2}\s+(.*)?\s+(?=\+{2})',line);
File "/usr/lib64/python2.4/sre.py", line 129, in match
return _compile(pattern, flags).match(string)
File "/usr/lib64/python2.4/sre.py", line 227, in _compile
raise error, v # invalid expression
sre_constants.error: nothing to repeat