help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Getting substring


From: Heime
Subject: Re: Getting substring
Date: Wed, 16 Aug 2023 13:18:44 +0000

------- Original Message -------
On Wednesday, August 16th, 2023 at 9:26 PM, Heime <heimeborgia@protonmail.com> 
wrote:


> I have a variable named 'multistr' which may consist of multiple parts 
> separated by spaces.
> How can I get the string before the first space in elisp ?
> 
> (setq multistr "this that")
> (message "%s" str) giving "this"

Have used 

  (setq str "bigoplus ⨁︁")
  (message "%s TEST: " (car (split-string str)))
  (setq str "bigoplus︁")
  (message "%s TEST: " (car (split-string str)))

Bet there is something very wrong with it.




reply via email to

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