Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 60218 invoked from network); 5 Sep 2003 22:17:34 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 5 Sep 2003 22:17:34 -0000 Received: (qmail 76064 invoked by uid 500); 5 Sep 2003 22:16:49 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 76026 invoked by uid 500); 5 Sep 2003 22:16:49 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 75987 invoked from network); 5 Sep 2003 22:16:49 -0000 Received: from unknown (HELO mx2.sonypictures.com) (66.77.63.115) by daedalus.apache.org with SMTP; 5 Sep 2003 22:16:49 -0000 Received: (qmail 12147 invoked by uid 0); 5 Sep 2003 22:14:39 -0000 Received: from unknown (HELO spde-mail1.spde.net) (160.33.16.160) by mx2.sonypictures.com with SMTP; 5 Sep 2003 22:14:39 -0000 Received: from sl-mail2.spde.net ([160.33.16.162]) by spde-mail1.spde.net with Microsoft SMTPSVC(5.0.2195.6713); Fri, 5 Sep 2003 15:16:46 -0700 X-MIMEOLE: Produced By Microsoft Exchange V6.0.6375.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Regular Expression Pattern Date: Fri, 5 Sep 2003 15:16:46 -0700 Message-ID: <961522C00478694CB10DAFE295B7ED8101B7B7D2@sl-mail2.spde.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Regular Expression Pattern Thread-Index: AcNz9/g76V5jODEnQea631rRvtlhBwAAGvvg From: "Harkness, David" To: "Ant Users List" X-OriginalArrivalTime: 05 Sep 2003 22:16:46.0325 (UTC) FILETIME=[64E57250:01C373FB] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Vikas Phonsa once said: > Another question. I don't know anything abt regular expressions. I > have a property = >=20 > I need to set another property named "manifest.file" with > value=3D"COMMON.MF".=20 >=20 > I need to somehow extract the string "COMMON" from the project.name > and add ".MF" to it.=20 >=20 > ---------------------------------------------------------------- > >=20 > input=3D"${project.name}" > regexp=3D"[^\.]*\.[^\.]*\.[^\.]*\." > replace=3D"\2" > casesensitive=3D"false" /> >=20 > > -------------------------------------------------------------------- I haven't used propertyregex before, but assuming it uses fairly standard regexps the following should do the trick: David Harkness Sr. Software Engineer Sony Pictures Digital Networks (310) 482-4756 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org