Is it possible with sed to replace a line with capture groups from the regex?
I have this regex, please note that this is fixed, I cannot change it.
si
Perl to the rescue!
perl -ne 'if (/(.*)simple sample (.*) with (.*)/) { print "$1$2\n"; } else { print }'