SyntaxFix
Write A Post
Hire A Developer
Questions
If s is your string:
s.replace(/^[^(]*\(/, "") // trim everything before first parenthesis .replace(/\)[^(]*$/, "") // trim everything after last parenthesis .split(/\)[^(]*\(/); // split between parenthesis