Here is a regexp that might do the trick:

(?<=\()[^\(\)]+

how it works:

(?<=\()  look-behind for a (

[^\(\)]+   chars that are not ( or )

Question for the regexp guru's on this list:   Why does using both look-behind and look-ahead like below fail?

(?<=\().*(?=\))

--ErikN


Regards,

--ErikN


2012/3/26 Yuan Jiang <sleetdrop@gmail.com>
eg:
($i++)

when I use Edit->Select->Enclosing Typing Pairs

I just want to select $i++, not ($i++)

how can I achieve this.






_______________________________________________
textmate mailing list
textmate@lists.macromates.com
http://lists.macromates.com/listinfo/textmate