On Aug 8, 2006, at 9:09 AM, Ted Burger <[EMAIL PROTECTED]> 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=""


(.*) will match the end of line. In other words, it will match anything, including nothing. That's why you're seeing what appears to be a doubling up of keys with empty values.

What you want is either of the following:

(.+)        # this matches *at least* one character
^(.*)$ # or here, grep knows you don't want the NULL
--
------------------------------------------------------------------
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]>

Reply via email to