匹配括号不包活小括号()
contacts=re.findall(r'(?<=\()[^\(\)]*(?=\))',xinxi, re.I)
匹配邮箱
mail_pattern = re.compile(
r'(?<=[\s::\<\(\>])[0-9a-zA-Z_\.\*-]{1,50}@[0-9a-zA-Z-\.]{1,50}\.[a-zA-Z0-9]{1,10}', re.I)
来源:CSDN
作者:进击的丑胖
链接:https://blog.csdn.net/wlddn/article/details/104679976