I have a column with a url sting that looks like this
http://www.somedomain.edu/rootsite1/something/something/ or http://www.somedomain.edu/sites/rootsite2/something/something
基本上,我只想把镜头归还根基(另一栏)。
因此,上述两条插图将回来:
http://www.somedomain.edu/rootsite1
http://www.somedomain.edu/sites/rootsite2
I can t compile the view with CLR, so I don t think Regex is an option.
感谢任何帮助。