title: Split string as key:value pair in javascript
body: <p><strong>I have a String:</strong></p>
  <p><code>&quot;{key1:value1}{key2:value2}&quot;</code>.</p>
  <p><strong>I want to split these string using regular expression as:</strong></p>
  <p><code>&quot;key1:value1&quot;,&quot;key2:value2&quot;</code> .</p>
  <p>Finally i got expression like <code>val.split(/{(.*?)}/);</code></p>
  <p>Surprisingly, this expression is not working in IE7.
  Just curious to know why the browser compatibility for Regular expression. And, do we have any alternate regular expression for fixing in IE7.</p>