I want to replace a string in a file using ant. For example, i need to scan all the files in a directory to match the string "CHANGEME" and i achieved this using below code,
<replaceregexp dir="C:/sample" match='CHANGEME' replace='XXX' flags="gi" byline="true" />
Now the string should not be changes if it contains any special character like "CHANGEME?". Can anyone suggest how to handle this condition in replaceregexp ant task ?