Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a long and arduous text file, and I need to do lots and lots of the same search-replaces on it inside of selections.

Is there a text editing program where I can do multiple find/replace (or regex) at one time?

That is, I want to : (select text) - (do-find-replace-set-A) - (do other stuff) - (repeat)

Instead of : (select text) - (f&r #1, f&r #2, f&r #3 ... ) - (do other stuff) - (repeat)

I have textpad, but it's macro's won't handle find/replace.

share|improve this question
I see the close for duplicate - can I see the link to duplicate please? That would be very helpful. – rlb.usa Apr 1 '10 at 19:35
The link someone thinks is a duplicate is this one:… (note that I did not vote as duplicate, that question asks for any tool, not a text editor specifically) – John T Apr 1 '10 at 20:00
up vote 1 down vote accepted

I gave up and started replacing all of the common expressions with a blurb for later with one massive find-replace session as the end for each blurb and it's proper replacement.

share|improve this answer

You could try Emacs, and you wouldn't necessarily even have to learn much elisp to do it...

share|improve this answer

Good old vim would be my editor of choice here (or anywhere else).

share|improve this answer

Notepad++ doesn't support Find/replace in macros, but the TextFX features or one of the plugins might be able to do what you want. If not, you could write your own plugin.

share|improve this answer
I could do it all by hand without find&replace faster than I can learn a new language and write a functioning extension. – rlb.usa Apr 1 '10 at 19:34
Notepad++ does not support "find in selection" – rlb.usa Apr 1 '10 at 19:55
The plugin list is here:… Glancing through the list, it looks like QuickText, RegRexPlace, or one of the scripting plugins might fit your needs. – Velociraptors Apr 1 '10 at 19:59
Sorry, I didn't realize that "find in selection" was required as well. – Velociraptors Apr 1 '10 at 20:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .