在ASP.NET C#中,假设字符串包含逗号分隔的单词:如何分割,然后将其与另一段进行比较,该段落可能包含或可能不包含这些词:
string strTwo = " when search a word or try another word you mayfind that WordTwo is there with others"
我在shell脚本中使用一个命令,该命令返回多个字符串,每个字符串都包含在""中。因为我需要这些字符串中的每一个作为数组的单独元素,所以我使用"作为分隔符来分割这个字符串集合,如下所示:arr=($(command that returns multiple stringsenclosed in ""))
现在,由于每个字符串的开头都有一个"字符