title: VScode replace regex before and after a match
body: <p>I am trying to do a search and replace for a certain string.</p>
  
  <p>Let's say:</p>
  
  <pre><code>this.$store.getters.xyz
  </code></pre>
  
  <p>And make it:</p>
  
  <pre><code>this.$store.getters['xyz']
  </code></pre>
  
  <p>One problem is that the string could end in either a space, a semicolon or a newline character. </p>
  
  <p>To me it seems I have to have an empty group at the end to replace.</p>
  
  <p>My current attempt:</p>
  
  <pre><code>(getters\.)((?&lt;=getters.)[A-z]*$)
  </code></pre>