-----Original Message-----
From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 27, 2007 1:19 PM
To: Ant Users List
Subject: RE: replaceregex issues

-----Original Message-----
From: Vihan Pandey [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 27, 2007 12:00 PM
To: Ant Users List
Subject: replaceregex issues

/*

../http://web1.foo.com with http://web1.foo.com
../../http://web1.foo.com with http://web1.foo.com
../../../http://web1.foo.com with http://web1.foo.com

...

This replaces the ../html by http but the ../../html ../../../html get
left out. The logical conclusion is my regex is wrong. i tried ^(../)*
but that does not help either.

Any suggestions?


*/


ok, tested now =

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

works for me with ant 1.6.5 / jdk 1.4.2_08

Regards, Gilbert








---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to