11
rated 0 times
[
14]
[
3]
/ answers: 1 / hits: 18684
/ 11 Years ago, tue, march 19, 2013, 12:00:00
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 data:
This could {{be }} a {{ string.with.dots_and_underscores }} of {{ mustache_style}} words which {{could}} be pulled.
Expected output:
['be','string.with.dots_and_underscores','mustache_style','could']
More From » regex