Dim data As String = "Marten~Samuel~~~Martha~"
Dim parser() As String
parser = Regex.Split("~", data)
Log($"Splitted Size: ${parser.Length} "$)
For i= 0 To parser.Length-1
Log($"Val #${i}=${parser(i)}"$)
Next
Logs a size of 5 like i was expecting where #2 and #3 are empty.
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Splitted Size: 5
Val #0=Marten
Val #1=Samuel
Val #2=
Val #3=
Val #4=Martha
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.