2

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.

2
  • I see the close for duplicate - can I see the link to duplicate please? That would be very helpful.
    – rlb.usa
    Apr 1, 2010 at 19:35
  • The link someone thinks is a duplicate is this one: superuser.com/questions/87544/… (note that I did not vote as duplicate, that question asks for any tool, not a text editor specifically)
    – user1931
    Apr 1, 2010 at 20:00

4 Answers 4

1

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.

0

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

0

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

-1

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.

4
  • 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, 2010 at 19:34
  • Notepad++ does not support "find in selection"
    – rlb.usa
    Apr 1, 2010 at 19:55
  • The plugin list is here: sourceforge.net/apps/mediawiki/notepad-plus/… Glancing through the list, it looks like QuickText, RegRexPlace, or one of the scripting plugins might fit your needs. Apr 1, 2010 at 19:59
  • Sorry, I didn't realize that "find in selection" was required as well. Apr 1, 2010 at 20:08

You must log in to answer this question.

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