How to split a string having "|","$","^" as delimeter in VB.net?

Rajnilari2015
Posted by Rajnilari2015 under VB.NET category on | Points: 40 | Views : 333
Imports System.Linq

Namespace ConsoleApplication1
Class Program
Private Shared Sub Main(args As String())

"RNATeam|Rajlaxmi$Niladri^Arina".Split(New [Char]() {"|"C, "$"C, "^"C}, StringSplitOptions.RemoveEmptyEntries).ToList().ForEach(Function(i) Console.WriteLine(i))
End Sub
End Class
End Namespace



Output
--------


RNATeam
Rajlaxmi
Niladri
Arina

Comments or Responses

Login to post response