Sample code for 30+ languages & platforms
Chilkat2-Python

StringBuilder GetBetween

Demonstrates the GetBetween method.

Chilkat Chilkat2-Python Downloads

Chilkat2-Python
import chilkat2

sb = chilkat2.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>")
print("Company Name = " + companyName)