title: How can I make my match non greedy in vim?
body: <p>I have a big HTML file that has lots of markup that looks like this:</p>
  
  <pre><code>&lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;
    &lt;span style="font-size: small; font-family: Times New Roman;"&gt;stuff here&lt;/span&gt;
  &lt;/p&gt;
  </code></pre>
  
  <p>I'm trying to do a Vim search-and-replace to get rid of all <code>class=""</code> and <code>style=""</code> but I'm having trouble making the match ungreedy.</p>
  
  <p>My first attempt was this</p>
  
  <pre><code>%s/style=".*?"//g
  </code></pre>
  
  <p>but Vim doesn't seem to like the <code>?</code>.  Unfortunately removing the <code>?</code> makes the match too greedy.</p>
  
  <p>How can I make my match ungreedy?</p>