On Tue, Apr 26, 2011 at 10:30 AM, Rich Shepard <[email protected]> wrote: > The built-in emacs info page on regex replacement shows that \& replaces > the entire search string. Unfortunately, when I try \&$ or \& $ I don't get > a \newline but the dollar sign. Any thoughts on why?
I believe that $ just matches end-of-line. Inserting a new-line is trickier (which is why my example used 'foo' instead.) I think you can get a newline character with: C-q <enter>, which should leave you with a single character that looks like ^M. --Rogan > > Rich > _______________________________________________ > PLUG mailing list > [email protected] > http://lists.pdxlinux.org/mailman/listinfo/plug > _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
