title: How to replace part of a matched regular expression string in Visual Studio
body: <p>I want to replace a single word in the comments of my visual studio project. To find that word (lets say its "fun" I can use a regular expression like the following example (FYI, I am actually using spaces and not underscores, but put underscores here since they are easier to see)</p>
  
  <pre><code>^(:b*').*_fun_
  </code></pre>
  
  <p>That will find strings like this</p>
  
  <pre><code>'Oh how fun it is to ride
  'You are fun to talk to
  </code></pre>
  
  <p>but it will not find</p>
  
  <pre><code>'You are so funny!
  </code></pre>
  
  <p>This is correct (its exactly what I want). What I want to know is how I can use use find/replace in VS to replace just the word " fun " with something else (lets say " interesting " for example's sake) such that the resulting comments end up as:</p>
  
  <pre><code>'Oh how interesting it is to ride
  'You are interesting to talk to
  'You are so funny!
  </code></pre>
  
  <p>Without having to individually replace each occurance of " fun " manually. </p>
  
  <p>Incase its not clear, I just want to search and replace in the comments (which is what makes the regex search necessary).</p>