Skip to content

Instantly share code, notes, and snippets.

@wingedpanther
Created November 19, 2015 11:34
Show Gist options
  • Save wingedpanther/743654920f804b8412e6 to your computer and use it in GitHub Desktop.
Save wingedpanther/743654920f804b8412e6 to your computer and use it in GitHub Desktop.
GET_STRING_BETWEEN
Function GET_STRING_BETWEEN(ByVal start As String, ByVal parent As String, ByVal [end] As String)
Dim output As String
output = parent.Substring(parent.IndexOf(start) _
, (parent.IndexOf([end]) _
- parent.IndexOf(start)) _
).Replace(start, "").Replace([end], "")
output = start & output & [end]
Return output
End Function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment