Url正则替换问题
我想把/blog/default.aspx?id=125 替换成 /user125/index.html
请问用Regex.Replace("/blog/default.aspx?id=125","正则表达式","/user$1/index.html")怎么写?
[解决办法]
Regex.Replace("/blog/default.aspx?id=125",@"\?id=(\d+)","/user$1/index.html")