Sample code for 30+ languages & platforms
Xojo Plugin

StringBuilder GetAfterBetween

Demonstrates the GetAfterBetween method.

Chilkat Xojo Plugin Downloads

Xojo Plugin
Dim sb As New Chilkat.StringBuilder
Dim success As Boolean
success = sb.Append("<abc><person><name>Joe</name></person><company><name>Chilkat Software</name></company></abc>")

// The GetAfterBetween method gets the substring between two arbitrary marker strings, and doesn't
// start searching until the searchAfter string is passed.

// For example, to get the company name in the string above...
Dim searchAfter As String
searchAfter = "<company>"
Dim companyName As String
companyName = sb.GetAfterBetween(searchAfter,"<name>","</name>")
System.DebugLog("Company Name = " + companyName)