title: PowerShell Split a String On First Occurrence of Substring/Character
body: <p>I have a string that I want to split up in 2 pieces. The first piece is before the comma (<code>,</code>) and the second piece is all stuff after the comma (including the commas). </p>
  
  <p>I already managed to retrieve the first piece before the comma in the variable <code>$Header</code>, but I don't know how to retrieve the pieces after the first <code>comma</code> in one big string.</p>
  
  <pre class="lang-bsh prettyprint-override"><code>$string = "Header text,Text 1,Text 2,Text 3,Text 4,"
  
  $header = $string.Split(',')[0] # $Header = "Header text"
  
  $content = "Text 1,Text 2,Text 3,Text 4," 
  # There might be more text then visible here, like say Text 5, Text 6, ..
  </code></pre>