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:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]