title: VB.Net Regex replace double quote inside of brackets
body: <p>I have been spinning my wheels trying to figure this out. I need to replace double quotes inside a set of brackets. My example below shows single quotes but I am still having issues</p>
  
  <p>This works for me -</p>
  
  <pre><code>Dim input As String = "This is my ['Test'] that works"
  Dim output As String = Regex.Replace(input, "(?&lt;=my.*)'(?=.*that)", "?")
  </code></pre>
  
  <p>Produces this string - <code>This is my [?Test?] that works</code>.</p>
  
  <p>But if I try this is appends instead of replacing the single quote -</p>
  
  <pre><code>Dim input As String = "This is my ['Test'] that works"
  Dim output As String = Regex.Replace(input, "(?&lt;=[.*)'(?=.*])", "?")
  </code></pre>
  
  <p>Produces this which is not what I want - <code>This is my ['?Test'?] that works</code>.</p>
  
  <p>As you can see the Regex.replace is appending the ? after the single quote, but I need it to replace the single quote with the ?. I am stumped.</p>