Perhaps the following will be helpful:
use warnings;
use strict;
my $string = 'I thistle thing am thinking this Thistle a changed thirsty string.';
my $pattern = '\b[Tt]hi\S+\b';
my @matches;
$string =~ s/($pattern)/push @matches, $1; ''/ge;
print "New string: $string; Removed: @matches\n";
Output:
New string: I am a changed string.; Removed: thistle thing thinking this Thistle thirsty