Remove whole string after "?"

Hey all,

I'm trying to remove a string after a specific character, "?", in the system clipboard before pasting.

I've done some digging through the forums and tried similar solutions, but I'm not getting the desired result. Please see a screenshot below. Thanks in advance!

And of course it took me creating an account and posting to see my stupidity!

Under "?.*" there was some text on a new paragraph so to speak, hidden.

Leaving this up at my expense in the hopes that it might help someone else in future!