Sample code for 30+ languages & platforms
Perl

StringBuilder GetBetween

Demonstrates the GetBetween method.

Chilkat Perl Downloads

Chilkat2 Perl
use strict;
use warnings;
use Chilkat2;

my $sb = Chilkat2::StringBuilder->new;
$sb->Append('<company><name>Chilkat Software</name></company>');

# For example, to get the company name in the string above...
my $companyName = $sb->GetBetween('<name>', '</name>');
print 'Company Name = ', $companyName, "\n";