i want to create JavaScript regexp that get all matches
{{match1}}{{match2}} notmatch {{match3}}
result will be
['{{match1}}','{{match2}}','{{match3}}']
what i tried so far
var text='{{match1}}{{match2}} notmatch {{match3}}';
const regex = /(?<=\{{)(.*?)(?=\}})/gm;
var match = text.match(regex);
this is working fine with chrome but in Firefox, IE and edge i am getting this error
SCRIPT5018: Unexpected quantifier
any solutions.