[TxMt] Regex Zero-width positive lookbehind

thomas Aylott thomas.42 at gmail.com
Thu Sep 8 16:46:45 UTC 2005


On Sep 8, 2005, at 12:15 PM, Allan Odgaard wrote:

> On 08/09/2005, at 18.05, thomas Aylott wrote:
>
>> I can't figure out how to make Zero-width positive lookbehind  
>> regex patterns work right.
>>
>
> Is this for syntax highlight or searching within TM? The former  
> uses oniguruma, which does support ZWPL, and the pattern you would  
> use, should work for that -- the latter does not support ZWPL (I  
> plan to migrate to Oniguruma for document searches as well).
>


That could explain it.
I was using searching to help me develop my regex for use in syntax  
highlighting.

I would also like to use ZWPL in regular searched & macros.
Once you have oniguruma for searching setup i'll be able to finish the
shortcut for 'select-contents-of-next-attribute' that I've been  
working on.

Then I'll just have to figure out how to make a command for 'select- 
contents-of-previous-attribute' but I have no clue how to search  
backwards easily.




More information about the textmate mailing list