[TxMt] RegEx Substitution
Allan Odgaard
throw-away-1 at macromates.com
Wed Aug 23 18:12:59 UTC 2006
On 23/8/2006, at 19:59, Fritz Anderson wrote:
> In Xcode, I'd search for the regular expression
> ^(\w+)
> and replace it with
> @"\1",
>
> TextMate appears not to support RE substitution in the replacement
> field. Is this the case? Are there thoughts on when that might
> become the case?
Use $1 instead of \1 in your replacement string [1].
[1] http://macromates.com/textmate/manual/regular_expressions#captures
More information about the textmate
mailing list