From: Francois Fleuret <francois.fleuret@inria.fr>
Subject: Re: How to parse a string?
Date: 01 May 2003 11:56:04 +0200 [thread overview]
Message-ID: <s02r87jng7f.fsf@wasabi.inria.fr> (raw)
In-Reply-To: mailman.5430.1051754378.21513.help-gnu-emacs@gnu.org
Hi,
Greg Hill wrote on 01 May 2003 02:54:20 MET:
> (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))
Thanks a lot!
But is there a generic way to do such a thing ? No scanf equivalent
around ?
FF
next prev parent reply other threads:[~2003-05-01 9:56 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
[not found] ` <mailman.5430.1051754378.21513.help-gnu-emacs@gnu.org>
2003-05-01 9:56 ` Francois Fleuret [this message]
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=s02r87jng7f.fsf@wasabi.inria.fr \
--to=francois.fleuret@inria.fr \
/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.