我是C#的初学者,我想只"title"从字符串中提取字符串:"http://playdebug.games.com/facebook/title.html"
我建议使用Path.GetFileNameWithoutExtension()
String toParse = "http://playdebug.games.com/facebook/title.html";
String result = Path.GetFileNameWithoutExtension(toParse);
Run Code Online (Sandbox Code Playgroud)