title: Easier way to extract ID from a string?
body: <p>I have this string that looks like this</p>
  
  <pre><code>string postData = "event_MemberGUID2=&amp;event_EventID2=6888591&amp;event_ItemID=10151249&amp;event_ItemType=&amp;event_ItemStatusDate=7%2F19%2F2017&amp;event_ItemSemTopic=Test Seminar Topic&amp;event_ItemSemType=100&amp;event_ItemRegion=101A&amp;event_ItemSemPointValue=0&amp;event_ItemStartDate=06%2F05%2F2017&amp;event_ItemEndDate=06%2F05%2F2017&amp;event_ItemStatusID=3";
  </code></pre>
  
  <p>and I am trying to get the event_ItemID</p>
  
  <p>this is how I am able to get it</p>
  
  <pre><code>List&lt;string&gt; lst = new List&lt;string&gt;();
  List&lt;string&gt; lstB = new List&lt;string&gt;();
  
  lst = postData.Split('&amp;').ToList();
  
  foreach(var a in lst)
  {
      if (a.Contains("ItemID"))
      {
          lstB = a.Split('=').ToList();
          Console.WriteLine(lstB[1]);                    
      }
  
  }
  </code></pre>
  
  <p>But is there an easier and more elegant way to get the event_ItemID than how I am extracting it? </p>