Test, validate and match regular expressions
Matches three alternatives: letter sequences followed by a comma, commas followed by letters, and function-call syntax like name(arg1,arg2) where arguments are letters separated by commas. With the global flag, it finds all occurrences in a string, making it useful for tokenizing comma-separated identifiers or masking/parsing function invocations in request strings.