0

我有以下网址

http://servername:12345/sites/MYSITE1/SUBSITE1
http://servername:543/sites/MYSITE2/SUBSITE1/SUBSITE2

我想删除之前的所有内容,包括/sites/提供以下输出

MYSITE1\SUBSITE1
MYSITE2\SUBSITE1\SUBSITE2

我已经尝试过-replace "*/sites/","",但他没有给我所需的结果。

4

1 回答 1

4
于 2013-07-10T12:35:51.977 回答