Discuss / Python / 第二题

第二题

Topic source

艾文SEO

#1 Created at ... [Delete] [Delete and Lock User]

def name_of_email(addr): result = re.match(r'^([<>\w\s]+)@[\w.]+', addr).group(1) if '<' in result: return result.split('<')[1].split('>')[0] return result


  • 1

Reply