String pattern = $"\"{key}\":\"(.*?)\\\"";
MatchCollection matches = Regex.Matches(exec_res, pattern, RegexOptions.IgnoreCase);
if (matches.Count > 0)
{
foreach (Match item in matches)
{
string codestr = item.Groups[1].Value.ToUpper();
}
}
版权声明:本文为qq_36894527原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。