Splits the given text around matches of the pattern.
Example:
Dim components() As String
components = Regex.Split(",", "abc,def,,ghi") 'returns: "abc", "def", "", "ghi"
Log(ToProperCase("this is supposed to be proper case"))
Sub ToProperCase(myStr As String) As String
Dim x As String
Dim j, k As Int
x = myStr.ToUpperCase.CharAt(0)
myStr = x & myStr.SubString2(1, myStr.Length)
For j = 1 To myStr.Length
k = myStr.IndexOf2(" ", j + 1)
If k = -1 Then Exit
x = myStr.ToUpperCase.CharAt(k + 1)
myStr = myStr.SubString2(0, k + 1) & x & myStr.SubString2(k + 2, myStr.Length)
Next
Return myStr
End Sub