On Tue, Aug 08, 2006 at 12:09:10PM -0400, Ted Burger wrote: > I tried: > GREP is checked > Search: (.*) > Replace: fieldname="&" postargumentname="&" > > But I get: > fieldname="order_id" postargumentname="order_id"fieldname="" > postargumentname="" > fieldname="order_num" postargumentname="order_num"fieldname="" > postargumentname="" > fieldname="category" postargumentname="category"fieldname="" > postargumentname="" > fieldname="listingsize" postargumentname="listingsize"fieldname="" > postargumentname="" > fieldname="boldtype" postargumentname="boldtype"fieldname="" > postargumentname="" > > I am getting doubles of the 'Replace'. > Any thoughts?
(.*) can match a zero-length string. In this case it's matching the zero-length string between the previous match and the newline. Change it to (.+) and you'll be fine. Find (.+) Replace fieldname="\1" postargumentname="\1" Ronald -- ------------------------------------------------------------------ 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]>
