in reply to minimal matching to end of string in regular expressions

In general, if you want to find the last pattern in a string:
/.*PAT/s;
So, in your case:
s/(.*)\).*/$1/s;
You can also combine this with the \K construct:
s/.*\K\).*//s
BTW, your question makes it unclear to me whether you want to trailing newline to be removed. My code does, and your "want it to be" does not include a newline -- but your original solution does.