var str = "aa ds sdf {asdf asdfag }"; var str1 = str.match(/\{[^\}]+\}/)[0];
var str = "aa ds sdf {asdf asdfag }"; var str1 = str.match(/\{[\S\s]+\}/)[0];