Author Topic: RegExp: Using of '\d' doesn't work  (Read 12271 times)

Malleus

  • Newbie
  • *
  • Posts: 11
    • View Profile
RegExp: Using of '\d' doesn't work
« on: April 10, 2015, 19:18:41 »
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)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4423
    • View Profile
    • Multi Commander
Re: RegExp: Using of '\d' doesn't work
« Reply #1 on: April 13, 2015, 07:41:06 »
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

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: RegExp: Using of '\d' doesn't work
« Reply #2 on: April 13, 2015, 18:34:00 »
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