my $line = " Lord: Of The $10Ring$s "; my $words = ''; if ($line =~ m/<.*>(.*)<\/.*>/) { $words = $1; } print $words;