I\'ve just started using Sublime Text 2, coming from emacs.
I have a region of text selected. Within that region, I\'d like to replace all text instances of \'0\' with \
First, select the portion of the text containing the bits you want to change.
On Windows (sorry) it's Ctrl + H or Find > Replace...
This opens up the Find/Replace boxes at the bottom of the file. Enter your details then click Replace All
(or Ctrl + Alt + Enter)
Some of the answers here haven't really helped.
People are showing you how to find stuff, but now how to replace it.
I just had a look, and it looks like it's Ctrl+H for replace, then you get the find dialog as well as a replace dialog. This worked for me.
ST2 has a feature for changing multiple selections at once.
*Look at the Find menu on the menu bar to find the correct shortcut key for your system. For vanilla Windows, the menu tells you that Find->Quick Add Next is Ctrl+D and Find->Quick Skip Next is Ctrl+K,Ctrl+D.
On a Mac you can can select the text that you are after then press: cmd + ctrl + G
This will select every instance of your selected text within the same document. If you now start typing to replace your original highlighted text, you will replace all of the other occurrences at the same time.
1) Ctrl + F
(or Cmd + F
on a Mac);
2) Enter the string you want to find on the input at the bottom of the window.
3) Press "Find All";
All of the appearances are now selected. Do whatever you want.
Aside
There are a bunch of options at the left of the input that opens on Ctrl + F
. There's one that says something like "Find in selected text". Select a bunch of text, check that option and repeat the same steps above starting from 2). Now, only matches belonging to that selection are selected.