I am trying to split with this regex ({[^{}]*})
in javascript and I get different result btw IE7 and FF. The firefox result is the right one.
<style>
.box.round {
border-radius: 10px;
}
</style>
<script>
jQuery(function ($) {
$('style').each(function () {
text = $(this).html();
alert(text);
alert(text.split(/({[^{}]*})/));
// result in FF: .box.round ,{border-radius: 10px;},
// result in IE7: .box.round
});
});
</script>
Update Is there a way to change the regex so it work in IE7 also without adding a javascript library?