Here's two different ways:
One way is that you could capture the character class match with parens, and then refer to it (in this case) as
$2.
/it (.*)([.?,])$/i and print $1, $2, $/;
Another way would be to simply move the character class to be inside the existing capturing parens:
/it (.*[.?,])$/i and print $1, $/;