VBScript
VBScript
StringBuilder GetBetween
Demonstrates the GetBetween method.Chilkat VBScript Downloads
Dim fso, outFile
Set fso = CreateObject("Scripting.FileSystemObject")
'Create a Unicode (utf-16) output text file.
Set outFile = fso.CreateTextFile("output.txt", True, True)
set sb = CreateObject("Chilkat.StringBuilder")
success = sb.Append("<company><name>Chilkat Software</name></company>")
' For example, to get the company name in the string above...
companyName = sb.GetBetween("<name>","</name>")
outFile.WriteLine("Company Name = " & companyName)
outFile.Close