title: How can I use the captured group in the same regex
body: <pre><code>mFoo = foo;
  mBar = bar;
  // convert to
  this.foo = foo;
  this.bar = bar;
  </code></pre>
  
  <p>How to use a regex to handle this substitution? Please help. Here is the method I used in Android Studio (IntelliJ IDEA) <code>Edit -&gt; Find -&gt; Replace in Path</code></p>
  
  <pre><code>Text to find: m([A-Z])([A-Za-z0-9]+) = L$1$2
  Replace with: this\.L$1$2 = L$1$2
  </code></pre>
  
  <p><strong>Update</strong></p>
  
  <p><code>L</code> above is a typo. It should be <code>\L</code> according to <a href="https://www.jetbrains.com/idea/help/finding-and-replacing-text-in-file.html" rel="noreferrer">JetBrains' document</a></p>