[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

replace-regexp-in-string bug?

From: Lennart Borgman
Subject: replace-regexp-in-string bug?
Date: Sat, 13 Aug 2005 14:17:17 +0200
User-agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)

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?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]