正则表达式
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=和"中间的内容