import re # 纯Email地址 regex = r'^\w+[\w+-+.]*@\w+.com$' if re.match(regex, 'someone@gmail.com'): print('match someone@gmail.com') if re.match(regex, 'bill.gates@microsoft.com'): print('match bill.gates@microsoft.com')
Sign in to make a reply
南海的椰子