ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Krzysztof Kucybała <>
Subject How to escape characters in regexp strings?
Date Fri, 17 Aug 2007 13:30:17 GMT

I have a problem. I'm trying to have ant substitute something in a few 
files. Here's the sample:

match='define("WS_WASSUPHOST" *, *".*");'				 
replace='define("WS_WASSUPHOST", "${dev.bck.mmc.ws_wassuphost}");'

This does not give me any errors, but it doesn't do anything. When I 
tried the same with " instead of ' in the match and replace attributes, 
obviously I'd need to escape other occurrences of " in the text. How do 
I do that? \" doesn't work :o( I will appreciate any help.

Best regards,
Krzysztof Kucybała

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message