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())
时间: 2024-10-25 21:50:28