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
2010-09-09 23:36:06
The Search link under Important Text-Changing Commands also leads to the same place.
Tikhon Jelvis
2010-09-09 23:43:51
+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
2010-09-09 23:43:30
+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
2010-09-10 07:04:04
A:
I've found this blogpost usefull: http://psung.blogspot.com/2009/12/subtleties-of-search-and-replace-in.html.
Matti Pastell
2010-10-03 14:15:42