Why not use <pathconvert>?
http://ant.apache.org/manual/CoreTasks/pathconvert.html

-- Larry

-----Original Message-----
From: Neeraj Kumar [mailto:[EMAIL PROTECTED] 
Sent: Saturday, July 16, 2005 5:57 AM
To: Ant Users List
Subject: replaceregexp issue: replace forward slash with backward slash

input:  c:/foo/bar

desired output: c:\foo\bar

code:
<replaceregexp file="test.properties" match="/"
           replace="\\" flags="g"    /> 


I'm getting an error. How do I achieve the desired output?

Thanks.
- Neeraj


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

Reply via email to