[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
reduce repeated backslashes
From: |
Andreas Roehler |
Subject: |
reduce repeated backslashes |
Date: |
Mon, 15 Feb 2010 09:40:13 +0100 |
User-agent: |
Thunderbird 2.0.0.19 (X11/20081227) |
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/
- reduce repeated backslashes,
Andreas Roehler <=