匹配的GUID我需要使用Regex
查找字符串
string findGuid="hi sdkfj 1481de3f-281e-9902-f98b-31e9e422431f sdfsf 1481de3f-281e-9902-f98b-31e9e422431f"
var guid = Regex.Match(m.HtmlBody.TextData, @"^(\{){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}$").Value;
您的代碼不工作嗎?問題是哪個? – Marco
我無法獲得匹配的GUID – user1551433
http://stackoverflow.com/questions/856327/regex-to-get-a-guid-from-a-email-reply –