As a first exercise, I'm trying to remove comments from lines of code that were copied to the system clipboard, then place the uncommented code back on the system clipboard.
My macro is based loosely on this post:
It usually does nothing, or it spews text of repeated lines, text that I previously placed in the macro for troubleshooting, etc. (as can be seen in the screen shot, the 'aaaaaaaaaaThis is some text...' in the next to the last action).
Thanks for any insight.
(Checked my regexp on some sample code at regex101.com using the PCRE flavor, and it works fine.)
Duplicated this macro to create a digits to time filter (i.e. 0100 → 01:00). Ran it on some sample text, and the text on the clipboard became text from the previous macro. Something strange going on here.
In this image, the text I right-clicked and ran the filter on became the text at the top of the clipboard history.
If you will post your exact source text, in a KM Code Block, then I will try to help.
Also, it would be most helpful for you to post the actual Regex101 snippet link, rather than just the main web site.