my $data = 'this is a TEST SENTENCE Foo Bar'; my $uc_string = $1 if ($data =~ /([A-Z]+)\b/); # This grabs 'TEST' but not 'TEST SENTENCE' ???