我有以下网址
http://servername:12345/sites/MYSITE1/SUBSITE1
http://servername:543/sites/MYSITE2/SUBSITE1/SUBSITE2
我想删除之前的所有内容,包括/sites/
提供以下输出
MYSITE1\SUBSITE1
MYSITE2\SUBSITE1\SUBSITE2
我已经尝试过-replace "*/sites/",""
,但他没有给我所需的结果。
我有以下网址
http://servername:12345/sites/MYSITE1/SUBSITE1
http://servername:543/sites/MYSITE2/SUBSITE1/SUBSITE2
我想删除之前的所有内容,包括/sites/
提供以下输出
MYSITE1\SUBSITE1
MYSITE2\SUBSITE1\SUBSITE2
我已经尝试过-replace "*/sites/",""
,但他没有给我所需的结果。