### Split String into String Array

To split a string into an array of strings, use the RegEx Function with its method Split.
Example
' Teststring
Dim cs As String = "Line1" & CRLF & "Line2" & CRLF & "Line3"
If cs.Length = 0 Then Return
' Split the text
Dim s() As String = Regex.Split(CRLF, cs)
For i = 0 To s.Length - 1
Log(s(i))
Next
' Add array to a ListView
ListView1.Items.AddAll(Regex.Split(CRLF, cs))
Example text from clipboard
' Get text from clipboard
Dim cs As String = fx.Clipboard.GetString
If cs.Length = 0 Then Return
' Split the text
Dim s() As String = Regex.Split(CRLF, cs)
For i = 0 To s.Length - 1
Log(s(i))
Next
Example x=y
Dim xy as string "x=y"
Dim s() as String = Regex.Split("=", xy)
Result:
s(0) = "x", s(1) = "y"

Changed: , Category: Strings, File: T6C255M1861.htm, ID: 1861