title: Javascript split only once and ignore the rest
body: <p>I am parsing some key value pairs that are separated by colons. The problem I am having is that in the value section there are colons that I want to ignore but the <code>split</code> function is picking them up anyway.</p>
  
  <p>sample:</p>
  
  <pre><code>Name: my name
  description: this string is not escaped: i hate these colons
  date: a date
  </code></pre>
  
  <p>On the individual lines I tried this <code>line.split(/:/, 1)</code> but it only matched the value part of the data. Next I tried <code>line.split(/:/, 2)</code> but that gave me <code>['description', 'this string is not escaped']</code> and I need the whole string.</p>
  
  <p>Thanks for the help!</p>