摘要:
s='zhg@142.com, ziiwe@163.com,zh__1334@sin.com, zhg223@sina.com, [Master]zhg13@sina.com,[科比]Kobe@NBA.com,James@NBA.net,T-Mac@tech.abc'要求:输出xxx@xxxxx.x... 阅读全文
摘要:
>>> re.sub('(\d+)[a-zA-Z]',r'\1','3a 22b c') #将匹配的字符串用第一组数据替换,即使用\d+匹配的字符替换。'3 22 c'import res=r'ht+p://(w{1,3})\.(.*)\.(com)'mo=re.compile(s)ob=mo.se... 阅读全文