阅读背景:

Regex -匹配没有返回任何值。我在哪儿错了?

来源:互联网 
>>> import re
>>> s = 'this is a test'
>>> reg1 = re.compile('test$')
>>> match1 = reg1.match(s)
>>> print match1
None
>>> import re
>>> s = 'this is a test'
>>> reg1



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

分享到: