Filter Output

Regex with Capture Groups

stdout | perl -nle '/^regex(.*)withcapturegroups$/ && print $1'