简体   繁体   中英

Is it possible to script multiple regex search-and-replace commands in Notepad++?

I have recently been having fun using regex successfully in Notepad++'s search and replace box.

However, I now have a short list of lengthy search-and-replacements that I would like to do again to another file later, and rather than enter them manually again, I was hoping I could stick them in a script somewhere and point it at my next file.

Is something like this possible in Notepad++?

If not, please recommend something that does support such a scheme.

Notepad++ may not be the best tool for automated operations. I would suggest a scripting language with a powerful regex engine like perl for this use. Please note though that your notepad++ regular expressions may not work with other engines right away.

If you don't want to learn a new language just for this, perhaps you can use Macro recording for this. I never used that feature, but I guess this is what it was designed for ;)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM