[TxMt] Method/function list?

Jeroen van der Ham jeroen at je-ju.net
Tue Nov 30 18:19:21 UTC 2004


On 30-11-2004 17:47, kumar mcmillan wrote:

>> - Pattern: ^(\d+):(.*)$
>>  [this parses out the grep output so we can identify the line part]
>> - Format: $2
>> - Line:1
>>
> I didn't really understand the Line / Format boxes in the command 
> dialog.

The Pattern is a regular expression (see TM help) and the () define two 
groups, which can be addressed with $1 (the \d+ match) and $2 (the .* 
match). The Format box then allows you to format the output such as you 
like, in this case it only shows the last group.

And what the Line box does I'm not sure.

Jeroen.



More information about the textmate mailing list