all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.