更新时间2019-03-13 04:54:51
如果你一定要用现在这个写法,稍微改下下就可以了。Regex.Replace( m.Groups["href"].Value, @".aspx?PID=(d+)&CID=(d+)&TypeID=(d+)", "_$1_$2_$3.html", RegexOptions.IgnoreCase)如果参数可能为空,就Regex.Replace( m.Groups["href"].Value, @".aspx?PID=(d*)&CID=(d*)&TypeID=(d*)", "_$1_$2_$3.html", RegexOptions.IgnoreCase)