I\'m using Mustache-style tags inside of AngularJS. What\'s the best regex to use to return an array of just the text inside the mustache braces?
Sample dat
You could try doing this with exec() instead:
exec()
var list = [], x = '"This could {{be }} a {{ string }} of {{ mustache_style}} words which {{could}} be pulled."', re = /{{\s*([^}]+)\s*}}/g, item; while (item = re.exec(x)) list.push(item[1]);