阅读背景:

re.findall没有返回完全匹配?

来源:互联网 

I have a file that includes a bunch of strings like "size=XXX;". I am trying python's re module for the first time and am a bit mystified by the following behavior: if I use a pipe for 'or' in a regular expression, I only see that bit of the match returned. E.g.:I have a file that includes a bunch of strings




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: