地址栏批量替换C#正则表达式例子

Regex reg1 = new Regex("Company/index\\.aspx\\u003FFid=([^&]*)&Sid=([^&]*)", RegexOptions.IgnoreCase);
Response.Write(" <br> <br> <br> <br> <br> <br>");
Response.Write(reg1.Replace("Company/index.aspx?Fid=123&Sid=456", "Company/Fid-$1-Sid-$2.htm"));

你可能感兴趣的:(正则表达式)