I have a String:
"{key1:value1}{key2:value2}".
I want to split these string using regular expression as:
"key1:value1","key2:value2" .
Finally i got expression like val.split(/{(.*?)}/);
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.
I would do it this way:
And it gives you
["key1:value1", "key2:value2"]array.