提取段落文本数量

时间:2014-02-21 11:58:33

标签: vb.net

dim a as string = "select id from table"

例如,我想要第二段:

second paragraph = "ID"
There paragraph = "from"

...

1 个答案:

答案 0 :(得分:0)

根据VB中的空格拆分字符串:

Dim words As String() = MyString.Split()

在C#中:

string[] Parts = MyString.Split(new char[0]);

string[] Parts = MyString.Split(null);