my $Count = 1000; my $regex = /\>([^\<]*)\so toll oder?'; if( $TimeString =~ $regex ){ print "$1\n"; } }