Multiple find and replace strings

Jul 23, 2013 at 2:34 PM
I have a text file that I am using fnr to find and replace values in. It works beautifully so far but I have approximately 60 different values to find and replace. Is there any way to run all of those in a single click or a single command line prompt? If it helps, I am looking to replace all of the values with a single value. Basically I want to find a bunch of names and replace them with "" (double quotes).

Any help would be appreciated.
Jul 23, 2013 at 6:38 PM
I realized that I could also just do it in seperate lines and that is fairly easy.
Jul 24, 2013 at 10:57 AM

Another way to do it is to use regular expressions. See link here.
This way you do all replacements in one pass.
So using fnr if you want to replace words: word1 and word2 with word3 you would:
  1. enter "word1|word2" in find text
  2. enter "word3" into replace text
  3. Check "Use regular expression" check-box
Jul 26, 2013 at 9:03 AM
Is it possible to replace somehow word1 with word3 and word2 with word4 in one pass?
I'd like to optimize my script.