From: Eric Hanchrow <offby1@blarg.net>
To: help-gnu-emacs@gnu.org
Subject: Re: elisp: Replacing dots in strings (. -> \.)
Date: Sun, 08 Jul 2007 08:07:00 -0700 [thread overview]
Message-ID: <871wfjszmz.fsf@offby1.atm01.sea.blarg.net> (raw)
In-Reply-To: m2fy3zt499.fsf@nschum.de
Jeronimo Pellegrini <j_p@aleph0.info> wrote:
> (replace-regexp-in-string "\\." "\\\." "aaa . bbb" t t)
> ==> "aaa \\. bbb"
To preserve your sanity, and that of anyone who reads your code, I beg
you to use the fabulous "rx" package (it's already in your Emacs --
nothing to install!)
(replace-regexp-in-string (rx ".") "\\." "aaa . bbb" t t)
==> "aaa \\. bbb"
--
Покажи мне твой .emacs, и я скажу, кто ты.
-- Russian Proverb
next prev parent reply other threads:[~2007-07-08 15:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-08 11:10 elisp: Replacing dots in strings (. -> \.) Jeronimo Pellegrini
2007-07-08 13:27 ` Nikolaj Schumacher
2007-07-08 15:07 ` Eric Hanchrow [this message]
2007-07-08 17:25 ` Jeronimo Pellegrini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871wfjszmz.fsf@offby1.atm01.sea.blarg.net \
--to=offby1@blarg.net \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).