2016-01-09 43 views
-3

我有URL需要用另一个网址替换部分网址。用c#中的另一个URL替换部分网址?

原始URL http://oldurl/dept/it/Lists/Contract Management System/DispForm.aspx?ID=4

我想只更换http://oldurl(只)有http://www.newurl.com。其余的网址会动态变化。

+1

https://msdn.microsoft.com/en-us/library/fk49wtc1(v=vs。 110).aspx –

+0

为什么这需要一个正则表达式? – d0nut

+0

因为... http:// sp2013qa会改变每个环境。 – James123

回答