views:

127

answers:

4

For a new user of Emacs, are the any good tutorials + references for learning and getting familiar with Emacs's search, replace and regex features?

+6  A: 

In Emacs, press C-h r to go to the manual and look at the section on Searching and Replacement. That'll cover everything you need, I think.

Tikhon Jelvis
The Search link under Important Text-Changing Commands also leads to the same place.
Tikhon Jelvis
+2  A: 

There are a lot of good resources online for how to do this. A cursory search uncovered:

EmacsWiki and more specifically: EmacsWiki Regular Expressions.

A good Emacs tutorial can be found at: A guided tour of Emacs.

If you have specific examples that are not working as you expect, let's see what you are doing.

Edward Leno
+1  A: 

You should take a look at A guided tour of Emacs, since it contains a pretty good crash-course in search-replace a bit down. Look for the heading Regular expression search and replacement :-)

monotux
A: 

I've found this blogpost usefull: http://psung.blogspot.com/2009/12/subtleties-of-search-and-replace-in.html.

Matti Pastell