#!/usr/bin/perl
use strict;
use warnings;

my $host='softbank218136142014.bbtec.net';

my $regex='softbank\d{6}';

if($host=~m/($regex)/){
 print "$1\n";
}

exit;