Question : vb.net - ignore case

hello there,
I have this little function but im trying to ignore the case.. how can I do that?
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
Function GetStringBetween(ByVal Str1 As String, ByVal str2 As String, ByVal str3 As String) As String
        'textbox.Text = GetStringBetween(sData, "first", "last")
        Dim foundstr As String = ""
        Dim values() As String = Split(Str1, str2)
        If values.Length >= 2 Then
            values = Split(values(1), str3)
            If values.Length >= 2 Then
                foundstr = values(0)
            End If
        End If
        Return foundstr
    End Function

Answer : vb.net - ignore case

try this
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
Function GetStringBetween(ByVal Str1 As String, ByVal str2 As String, ByVal str3 As String) As String
        'textbox.Text = GetStringBetween(sData, "first", "last")
        Dim foundstr As String = ""
        Dim values() As String = Split(Str1, str2, , CompareMethod.Text)
        If values.Length >= 2 Then
            values = Split(values(1), str3, , CompareMethod.Text)
            If values.Length >= 2 Then
                foundstr = values(0)
            End If
        End If
        Return foundstr
    End Function
Random Solutions  
 
programming4us programming4us