News:

MultiCommander v16.6 is released!

Main Menu

RegExp: Using of '\d' doesn't work

Started by Malleus, April 10, 2015, 19:18:41

Previous topic - Next topic

Malleus

Hi,
I have a question about regular expressions in the "multireplace tool:
Assume I have multiple files like "test.txt", "test1.txt" and "test11.txt".
Now I want to use a regular expression like "test\d+"which means "look for all file named "test" with digits.
How can I do this with '\d' or are these "\" flags aren't implemented yet?
Many thanks!
Frank

Mathias (Author)

Sorry. I'm no expert in RegEx.

There are many variants of RegExp. MC is using the one that is provided by C++, and should be the same as the one used in JavaScripts.
http://www.cplusplus.com/reference/regex/ECMAScript/

Also make sure the "RegEx" checkbox is checked. else the Regex engine is not called.

Malleus

Sorry, it was my fault! There were naming conflicts and that's the reason why nothing has been changed.
I only looked at the top of the screen where the new filenames are displayed ( calculated ) . There were empty! At the bottom there were your red notifications about double filenames.
regards!
Frank