title: VS Code Snippet | Placeholder + Transform
body: <h2>Goal</h2>
  
  <p>I can't find a way to create the following snippet : </p>
  
  <pre><code>[
      "${1:SECTION NAME/(.*)/${1:/upcase}/}",
      "====================================\n$0"
  ]
  </code></pre>
  
  <p>I want the following outcome : </p>
  
  <pre><code>&lt;selection&gt;SECTION NAME&lt;/selection&gt;
  ====================================
  </code></pre>
  
  <p>I then enter: "i am hopeless". [TAB]</p>
  
  <pre><code>I AM HOPELESS
  ====================================
  &lt;selection /&gt;
  </code></pre>
  
  <hr>
  
  <h2>Almost there!!</h2>
  
  <p>The closest I got is this : </p>
  
  <pre><code>[
      "${1/(.*)/${1:/upcase}/} ${1:SECTION NAME}",
      "====================================\n$0"
  ]
  </code></pre>
  
  <p>But I get a duplicate.</p>