解决python正则表达式出现:sre_constants.error: multiple repeat at position 3
一,问题出现:这是在PythonIDLE中运行出现的情况:>>>pattern='(.?*)(\d+)'>>>s='第1章绪论1'>>>re.findall(pattern,s)Traceback(mostrecentcalllast):File"/usr/lib/python3.6/code.py",line91,inruncodeexec(code,self.locals)File"",lin