python 正则表达式

import re

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

print m.group();

posted @ 2014-06-13 19:30  UCanBeFree  阅读(124)  评论(0)    收藏  举报