Extract a specifc portion of a string in C#
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/68624/how-to-parse-a-query-string-into-a-namevaluecollection-in-net">How to parse a query string into a NameValueCollection in .NET</a>  </p>
</blockquote>



<p>I have <strong>input</strong> as</p>

<pre><code>https://localhost:8181/PortalSite/View/CommissionStatement.aspx?status=commission&amp;quarter=1;
</code></pre>

<p><strong>Output needed</strong></p>

<pre><code>status=commission
</code></pre>

<p>How to do in C#(preferably regular expression or something else)..</p>

<p>My solution</p>

<pre><code>var res = src.Split('?')[1].Split('=')[1].Split["&amp;"][0];
</code></pre>

<p>but failing in <strong>Split["&amp;"]</strong></p>
