I tried this, but it copies the entire dir path:
Clipboard COPYNAMES=path REGEXP ".*\\(.*)" "\1"
Also, what regex engine does DOpus use?
I tried this, but it copies the entire dir path:
Clipboard COPYNAMES=path REGEXP ".*\\(.*)" "\1"
Also, what regex engine does DOpus use?
You don't want to use Clipboard COPYNAMES
to get the current folder name or path, since that command works on the selected items rather than the current directory.
No need for regular expressions here either
Use this instead, which is the same as Edit > Copy Other > Folder Path, except with nopath
added:
@nofilenamequoting
Clipboard SET {sourcepath$|noterm|nopath}
Regex details documented here: https://www.gpsoft.com.au/help/opus12/index.html#!Documents/Regular_Expression_Syntax.htm