Depending on what you have... any number of ways to go about it... might require some "clean up"...
Don't know that there's going to be one way... Going to be consequences regardless of what you do...
I would take those that did not get renamed, i.e. those that have trailing...
For (only) those that didn't work above, you could use something like:
Match: (.*)(#)(\d+)(.*)
Replace: \20\3---\1
That would truncate everything after the final set of #-digit(s) combination.
So #1, #12, #123, #123456789 ...
As you can see, that does not check for specifically 1 or 2 digits, which you could do.
(But that brings it's own problems.)
You might want to retain that trailing part, otherwise you may run into duplicate situations, or you may just want it...
In which case you could change the Replace to: \20\3---\1\4
And, as written, that would also cause an extra 0 to be in the name:
Jessica Jones V2016 #2 (2016) - Copy#30.cbz
->
#030---Jessica Jones V2016 #2 (2016) - Copy.cbz
Which you could then use a RegEx to remove that extra 0.
- Code: Select all
Match: ^(#0)(\d\d.*)
Replace: #\2
Or...