标签:
http://blog.csdn.net/carolzhang8406/article/details/6335072
http://www.iteedu.com/plang/python/pyrediary/5.php
s = ‘{"time":"11:59:33","s-ip":"m10.160.31.36"}‘
p=re.compile(‘(?<=m\d+.\d+.\d+.\d+)‘)
#p=re.compile(‘\d+‘)
pm=p.search(s)
print(pm is None)
print(pm.group())
标签:
原文地址:http://www.cnblogs.com/dreamer-fish/p/5532686.html