I have been using TotalCommander to operate files. This software comes with a name change tool and supports regular expression renaming. However, the name change cannot be performed in batches. It is more convenient to use batch processing for batch renaming, but the system's own renaming command only supports wildcard characters.
I found several software that supports regular expression renaming on the Internet. But none of them are very useful. For example: ren2. There are many kinds of syntax rules for regular expressions. The help documentation for these software is incomplete and the exact syntax rules cannot be known. Do it yourself and have enough food and clothing. It's easy to implement with Delphi Xe10. Use Perl 5 regular expression syntax.
If necessary, use it and use it. Decompress it, including the source code.
Link:/s/1gG_qSVItrS63UUPXdjHpyQ
Extraction code: xbp5
Program help content:
Copyright: (C) Copyright 2021 Jiang Yiyuan
Function: Use regular expressions to search for files and change their names.
Syntax: regRen [[/d] or [/r]] "find" ["replace"]
/d Search for files only.
/r Search and rename the file.
"find" Regular expression.
"replace" Replace content.
"regRen ^\d.*" has no options, only regular expressions, which means searching only files. Quite the /d option.
"regRen ^(\d)(.*) $1-$2" There is no option, there are regular expressions and replacement content, which means searching and displaying the rename result, and not actually rename the file.
"regRen /r ^(\d)(.*) $1-$2" contains the /r option, has regular expressions and replacement content, which is to search and actually rename the file.
This is the article about the command line tool that supports regular expression renaming. For more related regular expression renaming command line tool content, please search for my previous article or continue browsing the related articles below. I hope everyone will support me in the future!