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
Comment on
Re: use regex match from file grep
Download
Code
In Section
Seekers of Perl Wisdom