Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

propertyregex

Yannick Feuzet

2008-09-02

Replies: Find Java Web Hosting

Author LoginPost Reply
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
©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.