[ create a new paste ] login | about

Link: http://codepad.org/VCRL7ECZ    [ raw code | output | fork ]

Python, pasted on Jul 16:
1
2
3
4
#coding=utf-8
import re
a=re.compile(r'(?:^|[^\w])@(\w+)')
print a.findall('@whtsky,邮箱地址是ta@g.com 已经给@gdjm发了一封信.Never fall in love with @china.我想看看@luztak')


Output:
1
['whtsky', 'gdjm', 'china', 'luztak']


Create a new paste based on this one


Comments: