Remove the tokenfilter tags, and then your script will only replace the
first occurrence.
copy file=C:/test/props.xml tofile=C:test/propss.xml
filterchain
replaceregex byline=false pattern=lt;vers.modul\..+
replace=/
replaceregex byline=false pattern=lt;vers.module.+
${}
Regards, Gilbert
-Original Message-
From: Andrew Goktepe [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 12, 2006 3:08 PM
To: Ant Users List
Subject: Re: replaceregex, only the first match
Remove the tokenfilter tags, and then your script will only replace
the
first occurrence.
copy