Perhaps, instead of a TrimPrefix and TrimSuffix, we instead create a "RE Renamer".
It would put up a dialog that asks for a RegularExpression and a replacement. We could use QString's QRegularExpression to modify each matching filename. It would support replacement subgroups too.
Then it could produce a list of before and after filenames side by side and have OK and CANCEL buttons.
That would give easy trimming, adding, and even re-arranging of sub capture groups.
That should be quite doable. Would this be better, or are regular expressions too hard for most users needs?
KevinH
|