in reply to use regex match from file grep

This is a great job for a one-liner and the post-match variable:

perl -ne "print $' if /^tag\: /" file.txt