And were working fine. Today I discover only the last one is indeed working (Copy selection paths to the clipboard, with forward slashed). I could have sworn they were all working just a few days ago.
Today I tried fixing them but no matter what they simply will not work. Only the following format works
Thanks for the help Leo :]
I made the erroneous assumption that I had to insert the REGEXP inside the braces. After reading your comment, all that accomplishes is that the literal string {sourcepath REGEXP (.*)\\(.*)# \1/\2} is inserted in to the Clipboard.
I tried your suggestion:
@nofilenamequoting
clipboard set {sourcepath} REGEXP (.*)\\(.*)# \1/\2
This inserts the {sourcepath} and the string REGEXP (.*)\\(.*)# \1/\2 into my clipboard. So if the source was c:\temp, my clipboard would be:
Hmm, I think the Clipboard command's REGEX argument only works with COPYNAMES, not when supplying the string yourself.
In theory, the new ability to apply regex to {file} and similar codes could be used here, but that isn't hooked up for {sourcepath} yet, which I've just noticed. Have added that to our to-do list.
If you're using Opus 13, the new Evaluator lets you do this in a nice way:
Clipboard SET {=RegEx(source,"(.*)\\(.*)#","\1/\2")=}
In Opus 12, it could be done with a little script code. Shout if you need that.
(And, if it doesn't work, the only way it would ever get fixed is if someone tries it, finds out, and tells us. But it should work as we try not to break things.)