[ create a new paste ] login | about

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

Python, pasted on Jul 16:
1
2
3
4
5
#coding=utf-8
import re
t=re.compile('@([A-Za-z0-9\-]+[^A-Za-z0-9\.])')
a='@whtsky,邮箱地址是ta@g.com 已经给@gdjm发了一封信.我想看看@luztak'
print t.findall(a)


Output:
1
['whtsky,', 'gdjm\xe5']


Create a new paste based on this one


Comments: