Suppose I have a column of symbols like this:
StoreID StoreKey ApplicationID TerminalID ReferenceNumber CashierNumber TransactionAmount SalesTaxAmount Currency AccountNumber
I want to produce this:
@"StoreID ", @"StoreKey", @"ApplicationID", @"TerminalID", @"ReferenceNumber", @"CashierNumber", @"TransactionAmount", @"SalesTaxAmount", @"Currency", @"AccountNumber",
In Xcode, I'd search for the regular expression ^(\w+) and replace it with @"\1",
TextMate appears not to support RE substitution in the replacement field. Is this the case? Are there thoughts on when that might become the case?
Is there some TextMate-y way to do what I want in the mean time?
-- F
On 23/8/2006, at 19:59, Fritz Anderson wrote:
In Xcode, I'd search for the regular expression ^(\w+) and replace it with @"\1",
TextMate appears not to support RE substitution in the replacement field. Is this the case? Are there thoughts on when that might become the case?
Use $1 instead of \1 in your replacement string [1].
[1] http://macromates.com/textmate/manual/regular_expressions#captures