试图找出正则表达式模式,如果电子邮件包含Guid,例如
@H_301_1@
a141aa94-3bec-4b68-b562-6b05fc2bfa48-reply@site.com
该Guid可能在@之前的任何地方,例如
@H_301_1@reply-a141aa94-3bec-4b68-b562-6b05fc2bfa48@wingertdesign.com
我用这个来找吉尼斯
原文链接:https://www.f2er.com/regex/357198.htmlRegex isGuid = new Regex(@"^(\{){0,1}[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}(\}){0,1}$",RegexOptions.Compiled);