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: a function for string splitting Date: Tue, 26 Nov 2002 17:16:35 +0300 Sender: help-gnu-emacs-admin@gnu.org Message-ID: <15843.33347.536168.30597@localhost.localdomain> 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 1038318968 7538 80.91.224.249 (26 Nov 2002 13:56:08 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 26 Nov 2002 13:56:08 +0000 (UTC) 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 18GgC6-0001xE-00 for ; Tue, 26 Nov 2002 14:56:06 +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 18GgDM-0004SJ-00; Tue, 26 Nov 2002 08:57:24 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 18GgCn-00046n-00 for help-gnu-emacs@gnu.org; Tue, 26 Nov 2002 08:56:49 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 18GgCk-00045H-00 for help-gnu-emacs@gnu.org; Tue, 26 Nov 2002 08:56:48 -0500 Original-Received: from relay.wplus.net ([195.131.52.142]) by monty-python.gnu.org with esmtp (Exim 4.10) id 18GgCk-00044v-00 for help-gnu-emacs@gnu.org; Tue, 26 Nov 2002 08:56:46 -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 QAA02923 for ; Tue, 26 Nov 2002 16:56:43 +0300 (MSK) Original-Received: by emaile.wplus.net with scanned-ok (WebPlus antispam mailer ) id 18GgCh-0003r0-00 for help-gnu-emacs@gnu.org; Tue, 26 Nov 2002 16:56:43 +0300 Original-Received: from [195.131.51.53] (helo=localhost.localdomain) by emaile.wplus.net with esmtp (WebPlus antispam mailer ) id 18GgCg-0003qp-00 for help-gnu-emacs@gnu.org; Tue, 26 Nov 2002 16:56:42 +0300 Original-To: help-gnu-emacs@gnu.org X-Mailer: VM 6.97 under Emacs 21.1.1 X-Virus-Scanned: by AVP (http://www.avp.ru/) X-IP: 195.131.51.53 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:4023 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:4023 Dear Emacs community, I'm writing a function for translating dates in the form of a string into Spanish and Russian. For example, you have: "Thu, 21 Nov 2002 16:05:50 -0600 (CST)" Within my function I used a `let' expression of the form: (let ((day (substring "Thu, 21 Nov 2002 16:05:50 -0600 (CST)" 0 3)) (month (substring "Thu, 21 Nov 2002 16:05:50 -0600 (CST)" 8 11))) ...) All works fine provided that there isn't any date with one-digit day, i. e., "Fri, 8 Nov 2002 11:56:37 -0500 (CST)" My question is what function I could use for correctly splitting the string. Please be indulgent with me since 1. I'm not a programmer 2. I don't have access to the elisp manual even on-line (my connection is very slow, only sufficient to download my e-mail). Thank you very much in advance luis -- Luis Octavio Silva P. St. Petersburg State University. 66/3 Botanicheskaya St., Apt.119/2 Stary Peterhof St. Petersburg, Russia.