Find and Replace several several different values all at once

Posted by matt on Super User See other posts from Super User or by matt
Published on 2010-11-15T13:46:48Z Indexed on 2014/06/09 15:31 UTC
Read the original article Hit count: 421

I have a file with multiple instances of Text_1 and Text1 and I need to replace both those strings with Text_A and TextB respectively.

Currently I'm doing two Find and Replace functions on each file one that finds Text_1 and replaces it with Text_A and the other that finds Text1 and replaces it with TextB.

Is there any way to do this all at once instead of having to run "Find and Replace" twice?

I am using Dreamweaver CS3, but I also have Notepad++, regular Notepad, OO Writer, MS Word if those will be easier. Ideally I could do this in Dreamweaver or Notepad++ but I'm open to downloading something else to get the job done. I'd prefer not to have to do any command line stuff or create a batch file (while I'm aware of it, I don't understand it really).

Edit:

In case the above description isn't clear, let me explain it this way...

I want to run Find & Replace 1 time in 1 document and I want it to do ALL of the following during that one Find & Replace instance:

  1. Find: Text_1 and Replace with: Text_A
  2. Find: Text1 and Replace with: TextB

I am not trying to do a Find and Replace across several documents.

© Super User or respective owner

Related posts about notepad++

Related posts about text-editing