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

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

Namespace ConsoleApplication1
Class Program
Private Shared Sub Main(args As String())
Regex.Split("RNATeam|Rajlaxmi$Niladri^Arina", "[|$^]+").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