PowerShell
PowerShell
StringBuilder GetBetween
Demonstrates the GetBetween method.Chilkat PowerShell Downloads
Add-Type -Path "C:\chilkat\ChilkatDotNet47-x64\ChilkatDotNet47.dll"
$sb = New-Object Chilkat.StringBuilder
$sb.Append("<company><name>Chilkat Software</name></company>")
# For example, to get the company name in the string above...
$companyName = $sb.GetBetween("<name>","</name>")
$("Company Name = " + $companyName)