How to split a string into array?

IanMc

Well-Known Member
Licensed User
Longtime User
oh yes:
B4X:
Dim parts() As String 
parts = Regex.Split("|", inString)
 
Upvote 0

andrewtheart

Member
Licensed User
Longtime User
There appear to be a few "special characters" like this. I know this from looking at several forum posts. The period . might be another one, cannot recall right now.

Anyway, I really think they should be mentioned in the documentation on regex. I spent 30 minutes searching forums and scratching my head at odd split behaviour when it would have taken 2 minutes if it was pointed out in the documentation.

Thanks all
 
Upvote 0