help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

query-replace-regexp ... "Invalid repacement string '\.'"


From: s. keeling
Subject: query-replace-regexp ... "Invalid repacement string '\.'"
Date: Sun, 24 Sep 2006 23:56:41 GMT
User-agent: slrn/0.9.8.1 (Debian)

Hi.  I was trying to make it easy on myself using q-r-r replacing
'[^\]\.' (not a backslash, followed by a literal dot/period) with the
string (sans quotes) '\.', essentially "escaping" every dot/period in
the file.  "M-x query-replace" had no trouble with it but M-x
query-replace-regexp refused, spouting the error message in the
subject.

So how do you replace '.' with '\.' in emacs?  Googling's
(groups.google.com) turned up nothing useful (interesting, but not
useful).  I tried variations of '\\\.' (literal backslash followed by
literal period) to no effect.

Suggestions or pointers welcome.  Thanks.


-- 
Any technology distinguishable from magic is insufficiently advanced.
(*)    http://www.spots.ab.ca/~keeling          Linux Counter #80292
- -    http://www.faqs.org/rfcs/rfc1855.html    Please, don't Cc: me.
       Spammers! http://www.spots.ab.ca/~keeling/emails.html


reply via email to

[Prev in Thread] Current Thread [Next in Thread]