[TxMt] Backreferences in regexp search/replace

Soryu Soryu at serenity.de
Wed Mar 29 18:04:51 UTC 2006


Hello Trevor,

You are confusing backreferences and capture groups I think.

Please see here for the Syntax TextMate uses: http://macromates.com/ 
textmate/manual/regular_expressions#syntax_oniguruma

Backreferences are indeed \1, \2 and are uses in the Find field

Capture Groups are $0, $1, … and are used in the replace field

Soryu.


More information about the textmate mailing list