From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Luis O. Silva" Newsgroups: gmane.emacs.help Subject: Re: a function for string splitting Date: Wed, 27 Nov 2002 08:40:43 +0300 Sender: help-gnu-emacs-admin@gnu.org Message-ID: <15844.23259.605488.350421@localhost.localdomain> References: Reply-To: "Luis O. Silva" NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1038374487 7428 80.91.224.249 (27 Nov 2002 05:21:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 27 Nov 2002 05:21:27 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18GudZ-0001vX-00 for ; Wed, 27 Nov 2002 06:21:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18GudV-0002wx-00; Wed, 27 Nov 2002 00:21:21 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 18Gud9-0002qY-00 for help-gnu-emacs@gnu.org; Wed, 27 Nov 2002 00:20:59 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 18Gud6-0002og-00 for help-gnu-emacs@gnu.org; Wed, 27 Nov 2002 00:20:59 -0500 Original-Received: from relay.wplus.net ([195.131.52.142]) by monty-python.gnu.org with esmtp (Exim 4.10) id 18Gud1-0002fx-00 for help-gnu-emacs@gnu.org; Wed, 27 Nov 2002 00:20:56 -0500 X-Real-To: Original-Received: from emaile.wplus.net (emaile.wplus.net [195.131.52.155]) by relay.wplus.net (8.9.1/8.9.1/wplus.2) with ESMTP id IAA94180 for ; Wed, 27 Nov 2002 08:20:49 +0300 (MSK) Original-Received: by emaile.wplus.net with scanned-ok (WebPlus antispam mailer ) id 18Gucz-000Pta-00 for help-gnu-emacs@gnu.org; Wed, 27 Nov 2002 08:20:49 +0300 Original-Received: from [195.131.96.246] (helo=localhost.localdomain) by emaile.wplus.net with esmtp (WebPlus antispam mailer ) id 18Gucy-000PtQ-00; Wed, 27 Nov 2002 08:20:48 +0300 Original-To: Greg Hill In-Reply-To: X-Mailer: VM 6.97 under Emacs 21.1.1 X-Virus-Scanned: by AVP (http://www.avp.ru/) X-IP: 195.131.96.246 X-From: silva@paloma.spbu.ru Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:4083 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:4083 Dear Greg, On Tue, 26 Nov 2002 12:14:49 -0800, Greg Hill writes: Greg> Luis, Oops, too many "(". Make that: Greg> (let* Greg> (split-date (split-string "Thu, 21 Nov 2002 16:05:50 -0600 (CST)" " ")) Greg> (day-of-week (elt split-date 0)) Greg> (day-of-month (elt split-date 1)) Greg> (month (elt split-date 2)) ...) This is a very very interesting alternative suggestion to the `string-match', `match-string' pair suggested before. Neat! Thank you very much. luis -- Luis Octavio Silva P. St. Petersburg State University. 66/3 Botanicheskaya St., Apt.119/2 Stary Peterhof St. Petersburg, Russia.