title: Visual Studio Regex Find/Replace Wildcard
body: <p>I am using the find/replace option in visual studio.</p>
  
  <p>I have this:</p>
  
  <pre><code>new GeoState { Name = "Arizona", Abbreviation = "AZ", Country = "US" },
  </code></pre>
  
  <p>And want to change it to this:</p>
  
  <pre><code>new GeoState { Abbreviation = "AZ", Country = "US" },
  </code></pre>
  
  <p>For all occurrences of states in my file. Effectively removing the <code>Name</code> property.</p>
  
  <p>The regex find/replace expression I am running is this:</p>
  
  <p>Find:</p>
  
  <pre><code>new GeoState { Name = ".*",
  </code></pre>
  
  <p>Replace:</p>
  
  <pre><code>new GeoState {
  </code></pre>
  
  <p>However, in the example above, that finds the following:</p>
  
  <pre><code>new GeoState { Name = "Arizona", Abbreviation = "AZ",
  </code></pre>
  
  <p>changing it to this:</p>
  
  <pre><code>new GeoState { Country = "US" },
  </code></pre>
  
  <p>Why is <code>Abbreviation = "AZ",</code> included in the selection? It should terminate upon the first instance of <code>",</code> after the wildcard.</p>