This is a known issue in 1.6, and is fixed in 1.6.1.
Replacement phrase on search-and-replace page is not properly escaped.
Preview fails or does not behave as expected in some cases when it contains a '$' or '\':
- a single '\' not followed by another character causes failure
- a single '\' followed by another character will be dropped from the replacement
- a '$' not preceded by a '\' causes failure
Enter "\\" instead of "\" and "\$" instead of "$" in the replacement text box.
Replacement phrase is now escaped properly in the code.
'\' and '$' now behave as expected with no special treatment required.