On 8/8/06 Ted Burger wrote: >I have a LONG list of words: > >order_id >order_num >category >listingsize >boldtype > >I want to change it to: > >fieldname="order_id" postargumentname="order_id" >... > >I tried: >GREP is checked >Search: (.*) >Replace: fieldname="&" postargumentname="&" > >But I get: >fieldname="order_id" postargumentname="order_id"fieldname="" postargumentname="" >... >I am getting doubles of the 'Replace'. >Any thoughts?
Try either of these: Search: (.+) Replace: fieldname="\01" postargumentname="\01" OR Search: (.*)\r Replace: fieldname="\01" postargumentname="\01"\r Note that I prefer using "\01" rather than "&", but you can use the above replace patterns with "&", too. The search pattern .* can cause trouble when used by itself, because it means "find as much as possible of anything (except end-of-line), even nothing" -- and here it seems to be finding "nothing" at the end of each line, after already matching "as much as possible of anything" ... HTH - Bruce __bruce__van_allen__santa_cruz__ca__ -- ------------------------------------------------------------------ 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]>
