René Kyllingstad wrote:
Hi,
I'd like to remove the first word in a string, by deleting up to the first
space character, and did this:
(replace-in-string "one two three four five" "^[^ ]+" "")
=> " two three four five"
I'd like to remove the initial space too, and changed it to:
(replace-in-string "one two three four five" "^[^ ]+ " "")
=> "five"
I expected to get "two three four five". Is this a bug, or should I adjust
my expectations ?
I'm running 21.4.17 on windows.
bug. but a bit tricky to figure out how to avoid.