unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* reduce repeated backslashes
@ 2010-02-15  8:40 Andreas Roehler
  2010-02-15  9:03 ` Peter Dyballa
  2010-02-15  9:04 ` Thierry Volpiatto
  0 siblings, 2 replies; 6+ messages in thread
From: Andreas Roehler @ 2010-02-15  8:40 UTC (permalink / raw)
  To: help-gnu-emacs


Hi,

don't know how to replace/reduce repeated backslashes
from inside a string.

Let's assume "abcdef\\\\"

Tried

(replace-regexp-in-string "\\\\" (number-to-string ?\\) "abcdef\\\\" nil t)

which reduces so far, but shows chars as it's numeric value:

--> "abcdef9292"

Any help? Thanks!


Andreas

--
https://code.launchpad.net/~a-roehler/python-mode
https://code.launchpad.net/s-x-emacs-werkstatt/






^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <mailman.1267.1266223114.14305.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2010-02-15 11:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-15  8:40 reduce repeated backslashes Andreas Roehler
2010-02-15  9:03 ` Peter Dyballa
2010-02-15  9:04 ` Thierry Volpiatto
2010-02-15  9:12   ` Thierry Volpiatto
     [not found] <mailman.1267.1266223114.14305.help-gnu-emacs@gnu.org>
2010-02-15  8:51 ` Teemu Likonen
2010-02-15 11:55   ` Andreas Röhler

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).