I have taken a shot at this. I have pushed a very simple, very basic working version to master.
See the BookBrowser context menu for RE Renamer. You highlight the resources you want to rename first.
It requests your regex string and your replacement text.
Then it shows you what the results would be. If you accept, it does the actual renaming.
Some things:
- This is for testing purposes and feedback, there is no guarantee this feature will be kept.
- You need to escape a ( as \( to prevent it from being part of a group.
- You will not need to escape \s
- Replacement groups need to look like \1
- The testing for duplicate filenames is done on a file by file basis and no renames will be done on files that create duplicate bookpaths
So it is not pretty but it should be usable. If people think it should stay we can try a better way to handle the escaping for the backslash character.
Feedback welcome!