Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Find Replace Source Code - Regular Expression Problem

New Here ,
Mar 15, 2017 Mar 15, 2017

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.

dw-regex4.JPG

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

2.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Mar 16, 2017 Mar 16, 2017

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

...
Translate
Community Expert ,
Mar 16, 2017 Mar 16, 2017

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 16, 2017 Mar 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 16, 2017 Mar 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 16, 2017 Mar 16, 2017

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 16, 2017 Mar 16, 2017

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 17, 2017 Mar 17, 2017

I appreciate you sticking with me on this.  I went to the file location and neither the  cache or configuration folder is where it should be.  Here is a screenshot and the folder showing is empty.

dw-cache.JPG

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Mar 17, 2017 Mar 17, 2017

Hi sharingsunshine,

Can you try this document and let us know? Unusual behavior in Dreamweaver? Try restoring preferences.

Thanks,

Preran

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 21, 2017 Mar 21, 2017

trying that document nothing happens.  The dreamweaver.exe is located in C:\Program Files\Adobe\Adobe Dreamweaver CC 2017 then when I click on dreamweaver.exe nothing happens while I hold down the Windows key and control shift at the same time.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 20, 2017 Mar 20, 2017

You have to enable your OS's hidden files/folders to see them.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 21, 2017 Mar 21, 2017

I made them visible, I believe in the beginning.

https://gyazo.com/17c16d5f0a03a8be79e30452cc50eb74

I am new to Windows so let me know if I need to do something else too.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 22, 2017 Mar 22, 2017

You're in the wrong Dreamweaver folder in your screenshot.

The path should be...

C: > Users > rjw > AppData > Roaming > Adobe > Dreamweaver CC 2017 > your language > Configuration

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 22, 2017 Mar 22, 2017

Thanks to everyone, clearing the cache fixed the problem.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Apr 12, 2017 Apr 12, 2017
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines