的第二部分,我会一直像这样的字符串:提取字符串
"/FirstWord/ImportantWord/ThirdWord"
我怎样才能提取ImportantWord
?话最多只能包含一个空间,他们被forward slash
分离像我把上面,例如:
"/Folder/Second Folder/Content"
"/Main folder/Important/Other Content"
我总是希望得到第二个字(Second Folder
和Important
考虑到上面的例子)
使用[String.Split()](https://msdn.microsoft.com/en-us/library/system.string.split(V =创建一个由'/'字符分割的数组数组 –