python 正则表达式

import re

m=re.search('w+', 'foobar')

print m.group();

原文地址:https://www.cnblogs.com/canbefree/p/3786442.html