I have a string:
string = "{{1:123}} asdfadfasdfdfdfsaf {{1212:}}"
This is my current regex pattern:
var pattern = /[{{].*[}}]/;
When use match, I get:
string.match(pattern)
//returns ["{{1:123}} asdfadfasdfdfdfsaf {{1212:}}"]
How do I get just the first bracket chunk, or better yet, get an array that has each bracket chunk? My ideal return result would be:
["{{1:123}}", "{{1212:}}"]