Search Clipboard For Specific Text and Extract To Clipboard

That's great!
If one of the above posts solves your problem/question as originally stated, please check the "Solved" checkbox (click for details) at the bottom of that post.

Otherwise, please post your remaining questions/issues about this problem.
If you have other questions, please start a new topic.

As I expected with an example macro.

You uploaded Actions. Please select the Macro, and upload the entire Macro file and image using the Share menu. See How to post/upload your script/macro.