I am trying to use the Clipboard COPYNAMES FILE REGEXP internal command to capture part of filenames but also have a problem capturing/comsuming spaces in the filename.
The filename is effectvely the input to the regular expression engine in this context.
For my tests:
Input Filename is as below:
One B6395 Three.PNG
The command formats for the 3 test are:
Clipboard COPYNAMES FILE REGEXP (B\d{4}) "YYYY \1 XXX"
Clipboard COPYNAMES FILE REGEXP "(One) (B\d{4}) (Three)" \1=\2=\3
Clipboard COPYNAMES FILE REGEXP (One) (B\d{4}) (Three) \1=\2=\3
Sapces are shown in orange background in the screenshot:
"Gratitude is good for you" (Just made that up so it might be mine )