[TxMt] regex problem

Allan Odgaard allan at macromates.com
Fri Apr 1 21:29:57 UTC 2005

On Apr 1, 2005, at 23:14, Dameron Midgette wrote:

> ^(*[^\t])\t(*[^\t]){8}\t

I think this should probably be:


> replacing with this:
> $1\t$2\t

Since you have 'repeat 8 times' last, the capture registers ($1 & $2) 
will contain only the captures from the last repeat.

> searching selection only, regex on, hit replace and find
> 1)spinning pizza wheel of death

This is a known bug. The problem is when you do a repeat without a 
preceding character, like your * which had nothing to repeat -- 
basically the regex library will then go into infinite loop, applying a 
zero width pattern to the text. Something I will fix before 1.1 final.

More information about the textmate mailing list