You might try multiple find/replace commands. Experiment with them manually on a single file. Then, try incorporating them into a Text Factory so you can execute the entire sequence of replace operations on a set of files.
You could do a search, for instance, for "(</title>)(?s)(.*)(<script>)" replacing with "\1\3", which effectively should remove your first "[delete everything]" segment; then repeat with a similar search for each segment to be deleted. You'd be left with what you want. The sequence "(?s)" is an instruction that allows the dot character following to match line breaks as well as any other characters. On 3/29/06 9:08 PM, "Loren Ryter" <[EMAIL PROTECTED]> wrote: > Hi there. > > I subscribed to this list to ask this question. > > I want to do a multi-file search to strip down HTML to the part I want to > keep. This is what I want. "...." means I want to keep everything between > the mentioned tags. > > Top of document .... </title> > [delete everything] > <script> .... </script> > [delete everything] > <!-- #BeginEditable "isi" --> .... <!-- #EndEditable --> > [delete everything] > </body> ... End of document > > How would I do this? I know very basic regex, but not enough to pull this > off. > > Thank you. > > > > -- <[EMAIL PROTECTED]> Scripts for OE and Entourage: <http://homepage.mac.com/allen_a_watson/AppleScripts_For_You> Entourage questions: <http://www.entourage.mvps.org/> -- ------------------------------------------------------------------ Have a feature request? Not sure the software's working correctly? If so, please send mail to <[EMAIL PROTECTED]>, not to the list. List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml> List archives: <http://www.listsearch.com/BBEditTalk.lasso> To unsubscribe, send mail to: <[EMAIL PROTECTED]>
