I am trying to get value between multiple curly braces that startwith {{
eg :
var txt ="I expect five hundred dollars {{$500}}. and new brackets {{$600}}";
Expected Result : array of result like result[0] = "{{$500}}", result[1] = "{{$600}}"
I tried below thing, but it does not return expected result
var regExp = /\{([^)]+)\}/g;
var result = txt.match(regExp);