正则表达式的语法(三)

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