[SVN] TextMate 1.1b9

Allan Odgaard allan at macromates.com
Thu May 19 05:25:54 UTC 2005

On May 19, 2005, at 7:20, Charilaos Skiadas wrote:

>> And also the (?R); I couldn't make Oniguruma's sub-group matching  
>> work, which should have replaced this.
> Sorry for the ignorant question, but what is "(?R)"   ? I've looked  
> in as many regular expressions web pages as I could, and did not  
> find it anywhere? Can you elaborate a bit on what it was doing, and  
> what problems this creates?

It's a reference to the entire pattern (giving a recursive match,  
thus the R). It was used as in the workaround for the nested brackets  
problem, e.g. a pattern like: “\\{(?R)?\\}” will match a { and } with  
the entire pattern optionally inside, causing it to match balanced  

Oniguruma should have something similar, where one can refer to a  
capture (group), but I haven't been able to make it work.

More information about the textmate-dev mailing list