1. Not even a script 

$ perl -nle '/regex with (capture)/ && print $1'
$ perl -nE '/regex with (capture)/ && say $1'