in reply to Storing Substitution Output String

1. use non-greedy regexp: (.*?) instead of (.*)
2. add "s" modifier to end of string to include possible newlines

Courage, the Cowardly Dog