Solved

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

Posted on 2010-09-11
6
494 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Scrolling the scrollbar in a list in html 9 49
Sums of coloumns in html/java 15 68
.php tree directory? 5 57
How to count in a table in php 22 19
Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

863 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

18 Experts available now in Live!

Get 1:1 Help Now