I'm having some issues using the String.Split method, Example here:
Dim tstString As String = "something here -:- URLhere"
Dim newtstString = tstString.Split(" -:- ")
MessageBox.Show(newtstString(0))
MessageBox.Show(newtstString(1))
The above, in PHP (my native language!) would return something here AND URLhere in the message boxes.
In VB.NET I get:
something here
AND
: (colon)
Does the String.Split only work with standard characters? I can't seem to figure this one out. I'm sure it's something very simple though!
newTstStringis{ "something", "here", "-:-", "URLhere" }, which is what I would expect now that I know thattstString.Split(" -:- ")is functionally equivalent totstString.Split(" "). The output listed in this question is what you would get if you rantstString.Split("-"), although there would be a third element in the resulting array," URLhere".