Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 510
  • Last Modified:

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

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
boltweb
Asked:
boltweb
3 Solutions
 
kostantinos1995Commented:
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
 
sam2912Commented:
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
 
sam2912Commented:
Also, notice the regular expression function... you can use it to find specific patterns, including excludes (not-in).
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
Jason C. LevineNo oneCommented:
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
 
boltwebAuthor Commented:
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
 
boltwebAuthor Commented:
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now