ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yannick Feuzet <guyyann...@hotmail.com>
Subject propertyregex
Date Tue, 02 Sep 2008 12:38:21 GMT
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
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message