string xxx = ".......";
string pat = "{\"userid\":[^}.]*?}"; //校验段
MatchCollection mc = new Regex (pat, RegexOptions.Multiline).Matches (xxx); //去除多行,返回校验集合
foreach (Match m in mc) {
<span style="white-space:pre"> </span>print(m.Value);
}
C# 正则校验
最新推荐文章于 2023-11-29 15:09:48 发布