From: Greg Hill <ghill@synergymicro.com>
Subject: Re: How to parse a string?
Date: Wed, 30 Apr 2003 18:54:20 -0700 [thread overview]
Message-ID: <p04310102bad628938f83@[198.17.100.22]> (raw)
In-Reply-To: <87ade7d023.fsf@noos.fr>
At 1:42 AM +0200 5/1/03, François Fleuret wrote:
>For instance, given a string which I know is composed of 5 fields of
>type integer/integer/word/word/word, separated by spaces, how can I
>transform this string into a list of the objects?
(let ((instring "10 20 wordA wordB wordC"))
(setq instring (split-string instring))
(append (list (string-to-number (pop instring))
(string-to-number (pop instring)))
instring))
--Greg
next prev parent reply other threads:[~2003-05-01 1:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-30 23:42 How to parse a string? François Fleuret
2003-05-01 1:54 ` Greg Hill [this message]
[not found] ` <mailman.5430.1051754378.21513.help-gnu-emacs@gnu.org>
2003-05-01 9:56 ` Francois Fleuret
2003-05-01 12:00 ` Kai Großjohann
2003-05-01 18:02 ` Greg Hill
2003-05-01 21:10 ` Pascal Bourguignon
2003-05-01 23:41 ` Greg Hill
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='p04310102bad628938f83@[198.17.100.22]' \
--to=ghill@synergymicro.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.