title: Search a string for a value
body: <p>I have a string where its formatted with delimeters like:</p>
  
  <pre><code>string | time stamp in milliseconds | int counter | string
  </code></pre>
  
  <p>I need to be able to grab the counter value only. There will be a number of messages so the time stamp and counter will increase with each message.
  I am using a string builder for the incoming messages.</p>
  
  <p>What is the best way to get the counter in each string message coming in?</p>
  
  <pre><code>sb.Append(Encoding.ASCII.GetString(state.buffer, 0, bytesRead));
  string content = sb.ToString();
  </code></pre>
  
  <p>Thank you</p>