问题
How could I make a Windows batch file to find and rename with regex in files, that have specific text in them?
This is the needed scenario:
If file path is C:\Folder\ and file name is something_*.xml (wildcards allowed) and the file has specific text "9jmnysdrj98074jki" then use regex to find and replace text in all files matching these requirements.
If it's impossible to do that with plain functionality, maybe there are standalone command line tools capable of doing such tasks?
来源:https://stackoverflow.com/questions/65579243/windows-batch-powershell-file-to-regex-find-and-replace-only-in-files-having-spe