Sample code for 30+ languages & platforms
Objective-C

StringBuilder GetBetween

Demonstrates the GetBetween method.

Chilkat Objective-C Downloads

Objective-C
#import <CkoStringBuilder.h>
#import <NSString.h>

CkoStringBuilder *sb = [[CkoStringBuilder alloc] init];
[sb Append: @"<company><name>Chilkat Software</name></company>"];

//  For example, to get the company name in the string above...
NSString *companyName = [sb GetBetween: @"<name>" endMark: @"</name>"];
NSLog(@"%@%@",@"Company Name = ",companyName);