Given the following string, what regex matches both substrings within (and including) the curly braces?
var string = "{name: Jackie} works at {company: Google}";
I've tried using string.match(/{.*}/gi) but that returns the entire string as a match:
Array [ "{name: Jackie} works at {company: Google}" ]
Expected output:
Array [ "{name: Jackie}", "{company: Google}" ]