How can I modify it in order to have the removed string between '#' and '#' additionally assigned to the variable 'postponedTarget', (without the surrounding '#' characters)?
You need a separate "Search using Regular Expression" before this Search and Replace one that uses a capture group (parentheses) to save the string to a variable before replacing it: