111,126
社区成员
发帖
与我相关
我的任务
分享string resultString = "你的内容";
try {
resultString = Regex.Match(subjectString, "<div[^>]*(?<content>[^<]*)</div>", RegexOptions.IgnoreCase).Groups["groupname"].Value;
} catch (ArgumentException ex) {
// Syntax error in the regular expression
}