ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: propertyregex
Date Tue, 02 Sep 2008 13:30:40 GMT
regexp="([0-9]{5})([0-9]{2})" replace="\1/\2"

The first group has 4 not 5 characters.


Jan

-----Urspr√ľngliche Nachricht-----
Von: Yannick Feuzet [mailto:guyyannick@hotmail.com] 
Gesendet: Dienstag, 2. September 2008 14:38
An: user@ant.apache.org
Betreff: propertyregex

Hello all,

I want to attain the following String manipulation: 

200802  2008/02

ich wrote the followinfg code bat is not working. Can somebody help me. Thanks

<propertyregex     property="adjustedDate" 
                                input="${date}" // 200802
                                regexp="([0-9]{5})([0-9]{2})" 
                                replace="\1/\2"/>


<echo message="Date: ${adjustedDate}"/>
 ${adjustedDate} why 


Thanks



_________________________________________________________________
Appelez vos amis de PC à PC -- C'EST GRATUIT
http://get.live.com/messenger/overview

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message