I'm parsing a string like this with javascript:
[box style="a" width="b" height="c"]
So far, when I use http://gskinner.com/RegExr/ it works and it parses fine using this regex:
/(?<=\s).+?=".+?"/
However, when I do this in javascript it errors out:
Uncaught SyntaxError: Invalid regular expression: /(?<=\s).+?=".+?"/: Invalid group
This is part of the code:
if (scOpenTag instanceof Array) {
var params = scOpenTag[0].match(/(?<=\s).+?=".+?"/);
for (var i = 0; i < params.length; i++)
console.log(params[i]);
}
Somebody know what I'm doing wrong?