Perl
Chilkat2 Perl
StringBuilder GetBetween
Demonstrates the GetBetween method.Chilkat Perl Downloads
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";