@Alan-Kilborn said in How to copy strings?:
I suppose my posted script has “extensibility” going for it, as opposed to the macro solution, that to me seems difficult to extend to even single quotes.
Yes, though my regex solves OP’s problem, lack of extensibility is one of its drawbacks - Regarding this issue, for the moment I run out of ideas, but don’t give up.
Also, compared with your PS, my regex has another drawback, as it couldn’t preserve the original position of the caret. What a shame! ha ha
Have fun!