RE: propertyregex regexp construct question

2006-11-13 Thread Rémon van Gijn
Scot & Bill, many thanks, that did the trick perfectly. -Original Message- From: Scot P. Floess [mailto:[EMAIL PROTECTED] Sent: vrijdag 10 november 2006 17:36 To: Ant Users List Subject: Re: propertyregex regexp construct question Rémon: Set regexp = "([^-]+)-([^-]+)(-(.

RE: propertyregex regexp construct question

2006-11-10 Thread bill/wilandra
:[EMAIL PROTECTED] Sent: Friday, November 10, 2006 7:56 AM To: Ant Users List Subject: propertyregex regexp construct question Hi I want to use the propertyregex (ant-contrib) to lean up a string: PCS-VARIABLEAPPNAME-2.8.3-85 Basically I want to strip all until the second '-', so that

Re: propertyregex regexp construct question

2006-11-10 Thread Scot P. Floess
Rémon: Set regexp = "([^-]+)-([^-]+)(-(.*))" and select = "\3" This assumes a pattern where you have some chars, a dash, some more chars and then a final dash... Scot Rémon van Gijn wrote: Hi I want to use the propertyregex (ant-contrib) to lean up a string: PCS-VARIABLEAPPNAME-2.8.3-85

propertyregex regexp construct question

2006-11-10 Thread Rémon van Gijn
Hi I want to use the propertyregex (ant-contrib) to lean up a string: PCS-VARIABLEAPPNAME-2.8.3-85 Basically I want to strip all until the second '-', so that '-2.8.3-85' remains. Could anyone give me a hand with the regexp and select? thanks, Remon