Sublime Forum

[ST3]snippet regex bug or human error?

#1

Hi everyone,

I have something like this in a snippet (using substition like described here: docs.sublimetext.info/en/sublime … ppets.html) :

[code]${2:module_id}

${2/.?/\u$MATCH$POSTMATCH_t} *${2}_getModule();[/code]

With this code I want to replace the first char with its upper-case version.

The output in sublime is:
test

Test_t} *_getModule;

Any idea where the } comes from? Any escape I forgot?

0 Likes