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

Find and Replace [unreliable when using Regular Expressions]

Explorer ,
Jul 03, 2019 Jul 03, 2019

Copy link to clipboard

Copied

Hi,

I use this feature fairly often. I noticed that sometimes it does not return results after the initial search that did give the results. It just happened to me again, while using regular expression.

Case, step by step:

- I open Dreamweaver, and use the feature for the whole local site.

- I test the query first by pressing Find All button only.

- I get 112 results

- Then I press Find All button again and it returns zero results.

No matter what I do within Dreamweaver after this, the search returns zero results.

The only solution is to close the application and open it again. I use it on Mac.

If I use this without regular expression turned on, I always get the results.

Thanks

Views

519

Translate

Translate

Report

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 ,
Jul 03, 2019 Jul 03, 2019

Copy link to clipboard

Copied

Hi there,

Sorry to hear that you're having trouble using Find and Replace in Dreamweaver. We'd like to know the OS and Dreamweaver version you're using. Please check out this article: Find and replace text, tags, and attributes and let us know if that helps.

Thanks,

Harshika

Votes

Translate

Translate

Report

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 ,
Jul 03, 2019 Jul 03, 2019

Copy link to clipboard

Copied

I can't reproduce it in DW CC 19.01.   I have Windows 10 with latest updates.

WORKFLOW:

  1. My local site folder is defined in DW and resides on my primary hard drive --  C:\MyTestSite
  2. I use keyboard shortcut  Ctrl+Shift+F to Find.
  3. I type Bootstrap in the search field.
  4. In:  Entire Current Local Site.
  5. I hit the Find All button.  See screenshot.
  6. Find & Replace screen closes.
  7. Search panel opens.   Results 521 items found in 197 documents.
  8. Repeating steps 2-5 produces the exact same results each time.
Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Translate

Report

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
Explorer ,
Jul 03, 2019 Jul 03, 2019

Copy link to clipboard

Copied

As I said, it happens only when regular expression is used.

Votes

Translate

Translate

Report

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 ,
Jul 03, 2019 Jul 03, 2019

Copy link to clipboard

Copied

What regular expression did you use?

Which version of DW?

Which Mac OS?

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Translate

Report

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
Explorer ,
Jul 04, 2019 Jul 04, 2019

Copy link to clipboard

Copied

Find this:

<article>

<h1>(.*?)</h1>

<h2>

Replace with this:

<h1>$1</h1>

<article>

<h2>

Works first time only.

Votes

Translate

Translate

Report

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 ,
Jul 04, 2019 Jul 04, 2019

Copy link to clipboard

Copied

But your 1st post said you used Find All.

So which is it -- Find All or Replace All?

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Translate

Report

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
Explorer ,
Jul 04, 2019 Jul 04, 2019

Copy link to clipboard

Copied

LATEST

Why would that matter? It's the same window with both options offered. I do Find All first to see the results and what is going to be replaced. Then I tun it again with Replace instead of Find.

As BTW, I have never replaced anything without checking on it with Find first to browse through the results.

But what I add is that if I run the query for this:

<h1>(.*?)</h1>

I get the result every time.

But something like this:

<h1>(.*?)</h1>

<article>

<h2>

Only once. So, is it a bug because of multiple lines? Are there any special invisible characters in line breaks?

Votes

Translate

Translate

Report

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