I have a but that run the COPYNAMES function and returns the path of files which is very helpful. When I run it in an ftp window in Opus it returns something like this: ftp://a6tek.com//show/fmhdl/index.html
I am wondering if anybody knows the REGEX to replace "ftp://" with "http://" and also "//" with "/" in the result
I an thinking it would look like this:
Clipboard COPYNAMES = REGEXP .....
If there is a better/smarter way to do this I don't mind at all.
I will put it in a different button I am not trying to get it to dynamically figure out when I am in an ftp window. I will just use the modified button when I am in an ftp window.
I'm glad it is now working!
But some editing in this thread has made the reasoning bonkers. When I first read it, I recollect that (.) was reasoned to work historically. LXP corrected that to (.*) . All I did was suggest a syntax change to Regexp as it is documented in the Dopus manual.
The code was messed up by the forum, due to the age of the thread. I fixed it.
It's best to put anything involving * and \ characters inside code blocks so they aren't interpreted as markup or escape characters.
Not sure about REGEX vs REGEXP though. As far as I can tell, the argument has always been REGEXP (and we usually keep old ones working if we change the names/spelling, but there isn't an alias for "REGEX" in the Clipboard command template, so I am not sure if it ever worked).