Test, validate and match regular expressions
Matches and captures the last element in a comma-separated list enclosed in parentheses. It handles optional whitespace around the comma and before the closing parenthesis, making it useful for parsing function arguments, parameter lists, or array-like structures. The global flag allows finding multiple matches in larger texts.