title: C# Regular Expression: Remove leading and trailing double quotes (")
body: <p>If I have a string like below... what is the regular expression to remove the (optional) leading and trailing double quotes?   For extra credit, can it also remove any optional white space outside of the quotes:</p>
  
  <pre><code>string input = "\"quoted string\""   -&gt; quoted string
  string inputWithWhiteSpace = "  \"quoted string\"    "  =&gt; quoted string
  </code></pre>
  
  <p>(for C# using Regex.Replace)</p>