Solved

Listing HTML files that do not contain a text string - Dreamweaver.

Posted on 2010-09-11
6
493 Views
Last Modified: 2012-05-10
Hi I would like to use the search feature to find all the files in dreamweaver that do NOT contain a code view text string.   If this is possible in Dreamweaver we would prefer to use dreamweaver if not then we would consider any type of external software that can scan all the HTML files and provide a list of the files that do not contain a a specified text string in the HTML.

currently we are using Dreamweaver 8.0

Thank you
John
0
Comment
Question by:boltweb
6 Comments
 
LVL 2

Accepted Solution

by:
kostantinos1995 earned 400 total points
ID: 33653709
1. Open all the files
2. Use find/replace to match the string you don't want
3. Go at the search panel and note down the files that include the unwanted string
4. The files that you didn't note down are the ones you want
0
 
LVL 14

Assisted Solution

by:sam2912
sam2912 earned 50 total points
ID: 33653729
Dreamweaver has the best find-replace features I've ever come across for coding web pages. See attached screenshots.
SS-2010-09-12--0-DREAMWEAVER.jpg
SS-2010-09-12--1-DREAMWEAVER.jpg
SS-2010-09-12--2-DREAMWEAVER.jpg
SS-2010-09-12--3-DREAMWEAVER.jpg
SS-2010-09-12--4-DREAMWEAVER.jpg
0
 
LVL 14

Expert Comment

by:sam2912
ID: 33653736
Also, notice the regular expression function... you can use it to find specific patterns, including excludes (not-in).
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 70

Assisted Solution

by:Jason C. Levine
Jason C. Levine earned 50 total points
ID: 33655043
While Dreamweaver's Find/Replace is awesome, I'm not sure you can use it to find documents without an occurrence of a given string. It would strongly depend on what exactly the string contains. The regular expression engine is not as robust as a real programming language would be.

Rather than spend a ton of time tweaking a regex that may never work, I would tend to use kostantinos1995's solution. Search FOR the string and then save the search results in XML format. All of the files will be present in a node names mm_file. Once you get a plain list of files, you can deal with the others.
0
 

Author Comment

by:boltweb
ID: 33656377
Hi thanks for you responses. We have more than 4500 files in the folder which would make it impractical to compare the lists of files manually.   We have tried the advanced features of the Dreamweaver find however there are no options to show files that contain a text string. Has anyone got any refinements on the above ideas that may work for us or another method perhaps not using Dreamweaver since it is limited?

Thanks

John
0
 

Author Closing Comment

by:boltweb
ID: 33694726
In the end I found an external program called Actual Search and Replace that can list out all text files that don't contain a string - amongst many other things. This software is much more powerful and flexible than dreamweavers search and replace features and I can do practically anything I want with it so I at least found a solution that can be used for other jobs. Thanks for your help and suggestions.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Strip HTML Entities and convert <br> Entity to \n 4 31
HTML5 and Javascript 3 36
Compare site how does it work 4 51
SVG Star 4 16
Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now