如何从文本框中读取vb.net中的句子,将其拆分为单词,并将其存储在数组中?我该如何重新组合它?我想使用搜索或选择功能。
答案 0 :(得分:0)
假设"句子"是一系列的单词,用" " ...
分割"句子"分成几个单词:
Dim words() As String = Split("Hello world, this is a test.", " ")
Word-Array回到"句子"
Dim sentence As String
For each itm in words.items
sentence = sentence & " " & itm.toString
Next
sentence = Trim(Sentence)