C# 正则表达式

使用工具生成正则表达式以及规则

Regex regex = new Regex("<sign>(.+?)</sign>", RegexOptions.Singleline);

获取数组

MatchCollection match = regex.Matches(responseContent);

获取值

var mymatch = match[0].Groups[1].Value;
原文地址:https://www.cnblogs.com/CyLee/p/5431307.html