Hi @Nordy, to match anything inside following / preceeding certain characters but without those characters you can use lookbehind / lookahead assertions respectively:
console.log(str.match(/(?<=\()(.*?)(?=\))/g))
Another option would be using matchAll(), which will also give you the matches of the capturing parentheses… if you want to support IE though you’ll have to repeatedly call exec() instead, which is basically what matchAll() does.