import re
ma=re.match(r'^[\w]{4,10}@163.com$’,‘[email protected]’)
ma.group()
import re
ma=re.match(r' [\w]{4,6}@(163|126).com','[email protected]')
ma.group()
返回为xxx.163.com
import re
ma=re.match(r'^[\w]{4,10}@163.com$’,‘[email protected]’)
ma.group()
import re
ma=re.match(r' [\w]{4,6}@(163|126).com','[email protected]')
ma.group()
返回为xxx.163.com
相关文章: