On Feb 18, 2007 Andrew Starr wrote: > I managed to mess up some files and get my easy-to-read-by-human-eyes > HTML scrunched down a bit. > > Anyone have a grep pattern I could use for search/replace that would > give me some white space back? > > Either: > > ....<LI>.... > > turns into > > .... > [blank line] > <LI>....
For this you could simply have: Find: <LI> Replace: \r<LI> > > and/or > > ....<BR>.... > > turns into > > .... > <BR> > ..... For this: Find: <BR> Replace: \r<BR>\r To do both at the same time: Find: <[BL][RI]> Replace: \r& You can play around putting in a \r in various places. To flank all HTML tags with \r then: Find: <.+> Replace: \r&\r However I think that Format command in Utilities submenu of the Markup menu might be the way to go. This will produce quite a nicely laid out HTML page. One thing I'll mention about the Format command is that it leaves a single space character before every return character so I like to do: Find: \s\r Replace: \r after it. -- Patrick <http://www.patrickjames.me.uk> -- ------------------------------------------------------------------ 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]>
