Multi Commander > Support and Feedback

File Search Tab: Rename, Multi-Rename

(1/3) > >>

Crash+Burn:
When attempting a Multi-Rename from files selected within a Search Tab, "Replace Name & Extension" does not work: as soon as you type a dot, or \. (for regex) the file is no longer matched.

Context Menu for File Search Tab, is oddly missing a Rename entry?

GrantSP:
I could be wrong but, I believe the regexp doesn't work properly even without going through the search tab.

I just tried to perform some regexp, to see what the OP is describing, and I had the same trouble using \ or . even upon files selected from the main file panel. That is without using the search to narrow the selection.

Mathias (Author):
regexp work in the Multi-Rename tool.

However the Name part and Extension part are handled separately. So there is do "." part to match the extension for.

GrantSP:
Hmm.
Although I don't use regexp a lot there does seem to be some errors here.

An example of regexp is:
\[.\] matches any single character surrounded by "[" and "]" since the brackets are escaped, for example: "[a]" and "".

Using \ however inside the Multi-Rename tool gives an error message whenever it is used.

Error message is:
regex_error(error_escape): The expression contained an invalid escaped character, or a trailing escape.

If your implementation of regexp uses different methods, perhaps some tooltips inside the tool to assist in their creation would help.

Mathias (Author):
The regex engine is a so called perl compatible... I have not written it my self, regex is supported by the C++ standard libraries now days and that is the engine that is used. The error messages comes directly from the engine.

Im no regex expert.
But if I have  a filename named "MyFile[A].txt" and in the Multi-Rename under "Search and Replace" I got "\[.\]" and Replace with "B"
and "RegEx" checkbox checked..
it works. It renames file to MyFileB.txt, I do not get an error

Navigation

[0] Message Index

[#] Next page

Go to full version