On Tuesday, August 8, 2006, at 05:09 pm, Ted Burger wrote:
Folks,
I appear to be missing something.
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"
fieldname="order_num" postargumentname="order_num"
fieldname="category" postargumentname="category"
fieldname="listingsize" postargumentname="listingsize"
fieldname="boldtype" postargumentname="boldtype"
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?
i reckon search for:
(.*)
and replace with:
fieldname="\1" postargumentname="\1"
the save brackets are numbered in the order they appear in the search
pattern and you refer to them by \x where x is the number of the
brackets
--
------------------------------------------------------------------
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]>