【发布时间】:2010-12-01 00:35:25
【问题描述】:
这看起来很简单,但我尝试的一切似乎都不起作用
假设我有以下字符串:
string myString = "http://www.mysite.com/folder/file.jpg";
如何处理它以删除 URL 并将“file.jpg”保留为字符串值?
谢谢!
克里斯
【问题讨论】:
-
在
http://example.com/test.php?key=val等情况下,您想要什么?还是http://example.com/test.htm#section1?