Test, validate and match regular expressions
This regex captures items from a comma-separated list that ends with a closing parenthesis, such as function arguments or array elements in obfuscated JavaScript. It handles optional commas and whitespace before each item, making it useful for deobfuscating minified code where lists are compressed into single lines. The global flag allows extraction of all items in the list.