Skip to main content
Participating Frequently
March 15, 2017
Answered

Find Replace Source Code - Regular Expression Problem

  • March 15, 2017
  • 2 replies
  • 2357 views

I have CC DW 2017.0.1 and I have created a regular expression that works in previous versions of Dreamweaver but it won't find or replace any matching text.  I am new to this version so I may have something incorrect in the settings.

Please advise how I can replace the highlighted text which is in the code many times but with different values after the qs=

This topic has been closed for replies.
Correct answer Jon Fritz

The errors are all warnings and I get emails like this 2-3 times per week.  I won't be able to correct the errors every time before DW will replace the links that need to be changed.

Consequently, I tried it in Brackets without any changes and it matched all 13 occurrences.

Is it possible there is some setting incorrect in DW?  I prefer DW over Brackets so I still want this to work, if it can.


Code issues can definitely cause DW to act up, but since it does work in Brackets (not sure if they have the same F&R tool) that would make me lean toward something going corrupt in DW itself. I'd try clearing the program cache and/or renaming the personal configuration folder as my first steps...


Clear Program Cache - https://forums.adobe.com/thread/494811

Rename Personal Configuration Folder - https://forums.adobe.com/thread/494812


Those tend to catch a lot of funky "just started happening" style behavior in DW.

2 replies

mahakk20912952
Adobe Employee
Adobe Employee
April 12, 2017

This is not a bug. It is as expected. In the screenshot you have selected Search Text only as well which is the reason Regex search is not happening. If Search Text only filter is removed, Regex find and replace operations works without any errors. Tried in the same version 17.0.1.

Jon Fritz
Community Expert
Community Expert
March 16, 2017

Turn off the Search Text Only button (T icon) on the end of the F&R filters.

Participating Frequently
March 16, 2017

I turned off the search text button but it still doesn't match.

My code looks like a d but it is a cl

"http://cl\.exct\.net/\?qs=[a-z0-9]+"

you can see the distinction better with this font.

Jon Fritz
Community Expert
Community Expert
March 16, 2017

I noticed that and deleted my post (I'm guessing it was still in your email though).

When I duplicate a chunk of your page and run the same regex, without the Search Text Only button selected, it highlights the links without issue.

I wonder if the code errors on the page are possibly confusing DW?

Have you tried validating and clearing those up yet?