I am working on a project that converts a few dozen html files into text files, and have composed the replace-regexp formulae that do the job. The question is, how to apply all six of them consecutively, and then to do so to each of the dozens of files in the directory? I've appended my org explanation that includes the regexp, but keep in mind that those aren't the problem; they do their job (after translating the ^J, etc). The question is just how to programatically apply all six of them to each (HTML) file in the directory?
* 1. Delete all until >General Conference< \(.*^J\)*.*?General Conference * 2. Delete all <p class="copyright"> and after ^.*<p class="copy\(.*^J\)* * 3. Strip all tags \(<.*?>\)* * 4. Remove whitespace lines ^\s-*^J * 5. Remove ugly numeric identifier ^\s-*[0-9].*^J * 6. Remove amp & -> &