Copy link to clipboard
Copied
Using Find/Replace, some characters in Replace window are not in the output.
Looks to be triggered by $ sign.
E.g.,
Find $2812, Replace $4567 returns only 67 in the output
The $ sign and the next two characters are missing in the output.
Copy link to clipboard
Copied
Sorry for the late reply.
In RegEx code, $ is a powerful anchor for strict pattern matching to the end of your text string.
To match a literal dollar sign ($2812), you must escape it first with a backslash like this: \$2812
Hope that helps.
[Topic moved from DW Bugs to Discussions.]
Copy link to clipboard
Copied
@gwardbrookes, since your thread is about a Find/Replace issue rather than a regex pattern, it may be worth double-checking that Regular Expressions are not enabled. In Dreamweaver, this option can be toggled from the filter (funnel) menu in the Find/Replace dialog, both :
for single-file searches (Ctrl/Cmd + H)
or in Find in Files (Ctrl + Shift + F / Cmd + Shift + F).
If, on the other hand, this is meant to be a regular expression search, then @Nancy OShea’s advice applies: simply escape the dollar sign by using \$, and in that case only, keep the “Regular Expressions” checkbox checked.
That said, in a regex context, it would be interesting to understand the broader pattern being targeted, as the example given looks closer to a literal replacement.
Copy link to clipboard
Copied
I tried duplicating what you describe in DW 21.6 and couldn't get the partial replacement to happen.
If using the RegEx option in the Filter dropdown, it would simply fail. Otherwise, the text was changed without issue in Code/Live Split View in an HTML document.
One thing I have noticed over time with DW is that it really does matter, when it comes to bugs, what version, file type, and view is being used. That information may help find where the problem is coming from, or point to a potential fix or workaround.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more