您可以使用正则表达式:
string s = "The quick /little brown/ fox";
string[] result = Regex.Matches(s, @"((/.+/)|(\b\w+\b))").Cast<Match>().Select(m => m.Value).ToArray();
result.ToList().ForEach(x => Console.WriteLine(x));
Run Code Online (Sandbox Code Playgroud)
输出:
The quick /little brown/ fox
| 归档时间: |
|
| 查看次数: |
127 次 |
| 最近记录: |