Jump to content

how to speed up find/replace in text editor


mameha

Recommended Posts

winVi or vim for Windows - just be prepared to learn :)

:%s/\t/|/g

Should do the trick once you've got the file loaded.

Or, if you don't feel like learning Vim, you could always get Textpad (www.textpad.com) and do a regex search and replace on \t to |
[quote author=Daniel0 link=topic=111356.msg451239#msg451239 date=1160718594]
Else you could just copy a tab and paste it into the replace field.
[/quote]

The only problem with that is that tabs may be represented differently - I don't believe databases expand \t to 4 spaces or 8 spaces or whatever. I believe they just leave them as \t, and I wouldn't be surprised if the text editor in use would expand the \t to 4 or 8 spaces or whatever it thinks a tab is.
  • 2 months later...
Basically I have since found that Wordpad does find/replace much much faster than notepad.

Also, its not necessary to find/replace anyway in this case because you can use \t as the replace character in phpmyadmin.  pasting a tab into there wont work by the way.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.