Hi,

-----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?


*/



untested, try something like =

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

or maybe even

<replaceregex pattern="(h.+)" replace="/1" flags="m"/>


Regards, Gilbert








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

Reply via email to