On Wed, 8 Nov 2006 21:35:16 +0000, Michael Heth wrote (in message <[EMAIL PROTECTED]>):
> > > Hiya, > > I need to tweeze a bunch of data from a German web site. So when I > save out the source and then have BB remove the markup I end up with > this kind of stuff; > > BMW > R 45 > 450 > > 9/81-84 > > > MLV3F536 > 129,10 > > > > > MLV1H911 > 4,70 > > > > BMW > > R 60 > 600 > / 7 > 76-80 > > MLV1F516 > 53,30 > > > what I need to do is end up with this where the CRs between the BMW > text has been changed to tabs > > BMW R 45 450 9/81-84 MLV3F536 129,10 MLV1H911 > 4,70 > BMW R 60 600 / 7 76-80 MLV1F516 53,30 > > any tips/advice is appreciated. > > Thanks, > > M./ > > > The simplest way (in terms of not taxing either of my brain cells) to do this imho is to convert all CRs into tabs, then convert the tab preceding "BMW" back into a return character. Because in your required string example you have put it such that multiple CRs become a single tab I've made that so in the very simple expression below by using \r+, but if you wanted a tab for every return character the you would just leave out the +. So... Find: \r+ Replace \t then Find: \tBMW Replace: \rBMW -- 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]>
