I am trying to execute the command below as part of our weblogic install. Yes the string is part of a file.
I have tried using "e;, \", and \Q \E, but none of these options has worked. I was not aware of the regexp option. Thanks, Jeff <replace file="${env.DOMAINDIR}/bin/setDomainEnv.${fileext}" token="JAVA_OPTIONS=\"${JAVA_OPTIONS}\"" value="JAVA_OPTIONS=\"${JAVA_OPTIONS} -Dweblogic.ProductionModeEnabled=${WEBLOGIC_PRODUCTION_MODE}\""/> -----Original Message----- From: Gilbert Rebhan [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 1:50 PM To: Ant Users List Subject: Re: How do I escape the " in the replace command? Simon Jeffrey schrieb: > I am new to ant and I am trying to use the replace command to replace > a string that contains the " character. you have to provide more details = What did you try already ? Have you tried with regexp ? Where comes that string from, is it part of a file ? How does the file look like ? ... btw. in regular expressions the quote or double quote characters are not special, no metacharacters like f.e. [ \ ^ $ . | ? .... etc. so you don't need to escape them 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]