Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 39124 invoked from network); 10 Oct 2005 23:44:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Oct 2005 23:44:28 -0000 Received: (qmail 332 invoked by uid 500); 10 Oct 2005 23:44:23 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 277 invoked by uid 500); 10 Oct 2005 23:44:23 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 266 invoked by uid 99); 10 Oct 2005 23:44:22 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Oct 2005 16:44:22 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [156.153.255.206] (HELO atlrel8.hp.com) (156.153.255.206) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Oct 2005 16:44:25 -0700 Received: from ataexg11.americas.cpqcorp.net (ataexg11.americas.cpqcorp.net [16.114.1.30]) by atlrel8.hp.com (Postfix) with ESMTP id D42B32180 for ; Mon, 10 Oct 2005 19:44:00 -0400 (EDT) Received: from ataexc01.americas.cpqcorp.net ([16.114.1.51]) by ataexg11.americas.cpqcorp.net with Microsoft SMTPSVC(6.0.3790.211); Mon, 10 Oct 2005 19:43:18 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: splitting a string Date: Mon, 10 Oct 2005 19:43:18 -0400 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: splitting a string Thread-Index: AcXCjV5taU0ZxaAkQf2TcBzBC3V/EQLMf0nQAAyxCzA= From: "Lasher, James L" To: "Ant Users List" X-OriginalArrivalTime: 10 Oct 2005 23:43:18.0741 (UTC) FILETIME=[643DC050:01C5CDF4] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello all, I'm hoping someone here could help me with an idea on how to take a property and "split" it into two (additional) properties. My specific situation is that I have a property that has a value of [0-9][0-9].[0-9][0-9].[0-9][0-9][0-9]. I would like to split this so that I end up with one new property whose value is the beginning of the original property string ([0-9][0-9].[0-9][0-9]) and the second whose value would be the last set of [0-9][0-9][0-9]. =20 I currently have the original property defined in a file (/tmp/refverprops) which looks like: ReferenceVersionMinor=3D02.10.555 I've figured out a way to get the second property value which in my example will be ReferenceVersionMinor by doing the following: This will give me a property name/value of ReferenceVersionMinor/555 I can't figure out though how to do something similar to get the first property value of: 02.10 (without a trailing dot after 10). I could whip up a custom task to do this for me, but would prefer to use what's already available in Ant, if I can find what that might be. Can anyone help? -jim- --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org