AutoIt
AutoIt
StringBuilder GetAfterBetween
Demonstrates the GetAfterBetween method.Chilkat AutoIt Downloads
$oSb = ObjCreate("Chilkat.StringBuilder")
$oSb.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...
Local $searchAfter = "<company>"
Local $sCompanyName = $oSb.GetAfterBetween($searchAfter,"<name>","</name>")
ConsoleWrite("Company Name = " & $sCompanyName & @CRLF)