ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <Gilbert.Reb...@huk-coburg.de>
Subject RE: replaceregex issues
Date Mon, 27 Aug 2007 11:45:28 GMT
 


-----Original Message-----
From: Rebhan, Gilbert [mailto:Gilbert.Rebhan@huk-coburg.de] 
Sent: Monday, August 27, 2007 1:43 PM
To: Ant Users List
Subject: RE: replaceregex issues

/*
ok, tested now =

<replaceregex pattern="[\.\./]{1,}(h.+)" replace="/1" flags="m"/>

works for me with ant 1.6.5 / jdk 1.4.2_08
*/


typo, has to be =

<replaceregex pattern="[\.\./]{1,}(h.+)" replace="\1" flags="m"/>

instead, the reference to the group has to be written with ' \ '


Regards, Gilbert

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


Mime
View raw message