I guess what i am trying to figure out is how to capture items that fall between tab marks
I'm trying to capture in a text file what is in between tabs, apparently " " doesn't cut it any suggestions?
Code:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim YourString As String = "Just some text (1/1/2005 ) be tween (not a date here) dates.(2/4/2005) End of text."
Dim b As ArrayList = GetValsFromText(YourString, " ", " ")
For Each item As String In b
Response.Write(item)
Response.Write("<br>")
Next
End Sub
Public Function GetValsFromText(ByVal sText As String, ByVal char1 As String, ByVal char2 As String) As ArrayList
Dim lst As New ArrayList
Dim arr1() As String = sText.Split(char2)
For Each sItem As String In arr1
Dim arr2() As String = sItem.Split(char1)
If arr2.Length >= 2 Then
lst.Add(arr2(arr2.Length - 1))
End If
Next
Return lst
End Function