Sample code for 30+ languages & platforms
Xbase++

StringBuilder GetBetween

Demonstrates the GetBetween method.

Chilkat Xbase++ Downloads

Xbase++
LOCAL oSb
LOCAL cCompanyName

oSb := CreateObject("Chilkat.StringBuilder")
oSb:Append("<company><name>Chilkat Software</name></company>")

//  For example, to get the company name in the string above...
cCompanyName := oSb:GetBetween("<name>", "</name>")
? "Company Name = " + cCompanyName

oSb:destroy()