标签:match ring indexof [1] amp line 匹配 length mat
Regex regFileIds = new Regex(@"\bfileIds=(.*?)\b\""", RegexOptions.Multiline);
//\b;fileIds(.*?)\b\"
var fieldMatchs = regFileIds.Matches(valueStr);
foreach (Match match in fieldMatchs)
{
// idList.Add(match.Groups[1].Value.ToString());
var matchId = match.Groups[1].Value.ToString();
valueStr = valueStr.Insert(valueStr.IndexOf(matchId) + matchId.Length, $"&docId={sourceData["_id"].ToString()}");
}
匹配fileIds=和"中间的内容
标签:match ring indexof [1] amp line 匹配 length mat
原文地址:https://www.cnblogs.com/kevin1988/p/10218502.html