From: Lennart Borgman <lennart.borgman.073@student.lu.se>
Subject: replace-regexp-in-string bug?
Date: Sat, 13 Aug 2005 14:17:17 +0200 [thread overview]
Message-ID: <42FDE4CD.6080000@student.lu.se> (raw)
I want to create a regexp out of an unknown string with spaces. I am not
sure about the number of spaces in the actual string to match so I want
to do a replacement like this:
(replace-regexp-in-string "\s-+" "\s-+" "some space" nil t)
However this returns "some space" instead of "some\s-+space" which I
expected. Is this a bug or am I misunderstanding the arguments in some way?
next reply other threads:[~2005-08-13 12:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-13 12:17 Lennart Borgman [this message]
2005-08-13 12:37 ` replace-regexp-in-string bug? Lennart Borgman
2005-08-13 13:49 ` Andreas Schwab
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=42FDE4CD.6080000@student.lu.se \
--to=lennart.borgman.073@student.lu.se \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).