ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Finger" <mfin...@SVTECHNOLOGY.com>
Subject replaceregexp help
Date Wed, 25 Jun 2003 22:43:48 GMT
Hello,

I'm struggling a bit with the replaceregexp task. I have a property file and

want to replace "c:\\blah" in the line  "myproperty=c:\\blah\\yadaa\\yack" with

"d:\\localblah" ...

Here's what i'm doing:

<replaceregexp file="${veritySearchDir}/config/verityindexer.properties"

match=".:..blah"

replace="d:\\localblah"

byline="true" 

flags="i"/>

 

but I'm getting:

myproperty=d:localblah\\yadaa\\yack  in the file...

and I want myproperty=d:\localblah\\yadaa\\yack  in the file...

I've also tried using @#x5c;...

Also, on the match part it would be nice to match c:\\blah and c:\blah. I've tried match=
".:(\\*)blah" but it doesn't seem to work.

I'm using ant 1.53 and jdk 1.4.1_02

 

Thanks

Mike

Mime
View raw message