Home Download Buy Blog Forum Support

[ST3]snippet regex bug or human error?

[ST3]snippet regex bug or human error?

Postby Herrbert on Mon Oct 28, 2013 11:46 am

Hi everyone,

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

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

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

The output in sublime is:
Code: Select all
Test_t} *_getModule;

Any idea where the } comes from? Any escape I forgot?
Posts: 1
Joined: Mon Oct 28, 2013 11:39 am

Return to Technical Support

Who is online

Users browsing this forum: No registered users and 12 guests