Is there a way to replicate this PHP snippet in JQuery or Javascript...
Regex are pretty much the same across all languages. If you want to get everything in between {}
and put it into an array you can do this:
var arr = [];
var str = 'Lorem {ipsum dolor} sit {amet} conseteur {adipisci}';
str.replace(/{(.+?)}/g, function(a, b){ arr.push(b) });
console.log(arr); //=> ["ipsum dolor", "amet", "adipisci"]
Demo: http://jsfiddle.net/elclanrs/xeHZn/