(?=@)匹配之前的

(?<=@)匹配之后的

1145141919810@ji.com

  • (?=@) 匹配的是1145141919810
  • (?>=@)匹配的是ji.com

并且python中re.match是无法匹配字符串中间的字符的,只能用re.search来匹配