This regular expression will clearly meet your requirements and place the non, delimiter part in the first capture group:
=([^=]+)(?==)
Unfortunately, JavaScript regex has no appearance, otherwise it can be done much easier.
Here is the code:
var str = '=([^=]+)(?==)'; var re = /=([^=]+)(?==)/g, ary = [], match; while (match = re.exec(str)) { ary.push(match[1]); } console.log(ary);
source share