title: c# substring indexof
body: <p>i have a string which looks like this -
  <code>"FirstName||Sam LastName||Jones Address||123 Main ST ..."</code> (100 more different values)</p>
  
  <p>I want to find only Sam and Jones from the entire string.</p>
  
  <p>so string <code>firstname = originalstring.substring</code> ... etc.</p>
  
  <p>Does anyone know how I can do this?</p>
  
  <p>ADDITION -
  I think i forgot to mention couple of things.</p>
  
  <pre><code>FirstName||Sam\r\n MiddleName||\r\n LastName||Jones\r\n ....
  </code></pre>
  
  <p>So now if i count the number of characters that wont help me, cause could need more items other than just <em>firstname</em> and <em>lastname</em>.</p>