title: How to split by multiple strings in C#
body: <p>My Question consists of how might i split a string like this:</p>
  
  <pre><code>""List of devices attached\r\n9887bc314\tdevice\r\n12n1n2nj1jn2 
  \tdevice\r\n\r\n"
  </code></pre>
  
  <p>Into:</p>
  
  <pre><code>[n9887bc314,n12n1n2nj1jn2]
  </code></pre>
  
  <p>I have tried this but it throws the error "Argument 1: cannot convert from 'string' to 'char'"</p>
  
  <pre><code>string[] delimiterChars = new string[] {"\\","r","n","tdevice"};
  string y = output.Substring(z+1);
  string[] words;
  words = y.Split(delimiterChars, StringSplitOptions.None);
  </code></pre>
  
  <p>I'm wondering if i'm doing something wrong because i'm quite new at c#.
  Thanks A Lot </p>