+1

snippet with text transformation

baurzhan zhakashev 12 aastat tagasi uuendaja FichteFoll 12 aastat tagasi 1

i have this snippet

<snippet>

    <content><![CDATA[ \$${1:var}['${1}']['${3}'] ]]></content>

    <tabTrigger>var2</tabTrigger>

    <scope>text.html,source.php</scope>

    <description>$var['']['']</description>

</snippet>


and i want to text transform (Title case) this part['${1}'] while typing ${1:var}

so result should be like this


$adv['Adv']['name']


is it possable?


+1
<snippet>
  <description>$var['']['']</description>
  <tabTrigger>var2</tabTrigger>
  <scope>text.plain</scope>
  <content>
<![CDATA[\$${1:var}['${1/^./\u$0/}']['${2}']]]>
  </content>
</snippet>

See:
http://docs.sublimetext.info/en/latest/extensibility/snippets.html#substitutions
http://www.boost.org/doc/libs/1_44_0/libs/regex/doc/html/boost_regex/format/perl_format.html