REGEX on COPYNAMES

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.

Clipboard COPYNAMES  REGEX "ftp://(.*)//(.*)" "http://\1/\2"

Works great! Thanks so much!

In my current version of Directory Opus this does not work anymore. What has changed? Is there a way to make this work now? Thanks

Try replacing . with .*.

This is what I have. Seems like it should work.

Clipboard COPYNAMES REGEX "ftp://(.*)//(.*)" "http://\1/\2"

But it does not anymore. Thanks

Try Clipboard Copynames Regexp .

That did the trick. Thanks

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).

Thanks Leo !
That fixes this thread.

Side note:
Get some proper sleep !
Certainly there are more important matters on the forum than this.
Or are you are in Australia these days ?