title: Using find & replace with regex to refactor a method call in Visual C++
body: <p>I have loads of instances of code like:</p>
  
  <pre><code>throw CODBCException("Error!",GetHENV(),GetHDBC());
  throw CODBCException(Msg,GetHENV(),GetHDBC());
  </code></pre>
  
  <p>I want to replace each with a utility method:
  <code>throwException("Error!")</code> or <code>throwException(Msg)</code></p>
  
  <p>Is this something Visual C++ search/replace can do using a regex? I never used this feature before and I don't really know regex well either, but it would be pretty neat.</p>
  
  <p>I'm only interested what comes up to the first comma e.g. <code>throw CODBCException("Error!",</code> so really I'm searching to replace <code>throw CODBCException(X,...)</code> with <code>throwException(X)</code></p>