zl程序教程

您现在的位置是:首页 >  后端

当前栏目

C# 正则表达式

2023-09-11 14:16:39 时间

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

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

获取数组

MatchCollection match = regex.Matches(responseContent);

获取值

var mymatch = match[0].Groups[1].Value;