Sample code for 30+ languages & platforms
C#

StringBuilder GetBetween

Demonstrates the GetBetween method.

Chilkat C# Downloads

C#
Chilkat.StringBuilder sb = new Chilkat.StringBuilder();
sb.Append("<company><name>Chilkat Software</name></company>");

//  For example, to get the company name in the string above...
string companyName = sb.GetBetween("<name>","</name>");
Debug.WriteLine("Company Name = " + companyName);