String.Split (String[], StringSplitOptions) : String Split « Data Types « VB.Net






String.Split (String[], StringSplitOptions)

  

Imports System

Class Sample
    Public Shared Sub Main() 
        Dim phrase As String = "this is a test"
        Dim words() As String
        
        words = phrase.Split(TryCast(Nothing, String()),  StringSplitOptions.RemoveEmptyEntries)
        
        words = phrase.Split(New String() {},StringSplitOptions.RemoveEmptyEntries)

    End Sub
End Class

   
    
  








Related examples in the same category

1.String SplitString Split
2.Split by ControlChars.Tab
3.String.Split Method (Char[])
4.String.Split Method (Char[], Int32)
5.String.Split Method (Char[], Int32, StringSplitOptions)
6.Split a string delimited by characters and return all elements
7.Split a string delimited by characters and return all non-empty elements
8.Split string into string and empty string
9.StringSplitOptions.RemoveEmptyEntries
10.Split a string delimited by another string and return all elements
11.Split the original string at the delimiter and return all non-empty elements
12.String.Split (Char[], StringSplitOptions) (System)_VB.htm
13.Split with string arrays