Recently for my C++ classes and during highschool for when I made my Java scriptable bot, I've had to make GetBetween functions to easily get between two strings from a source point. I've been using one I found online VB for quite some time, but realized that it can be done in a far more simple way:
Gets the string between Start and Finish from the text Source.
Code:
Private Function GetBetween(ByVal Source As String, ByVal Start As String, ByVal Finish As String) As String
Dim index As Integer = InStr(Source, Start) + (Start.Length - 1)
Dim fIndex As Integer = InStr(Source, Finish) - 1
Dim len As Integer = fIndex - index
Return Source.Substring(index, len)
End Function
Gets the string between Start and Finish from the text Source.














