Test, validate and match regular expressions
This regex matches the literal string 'add(' followed by one or more characters and a closing parenthesis, capturing the contents in group 1. The non-greedy quantifier ensures it stops at the first closing paren, so it can handle calls like add(1,2) but not unmatched parens. It is useful for extracting arguments from simple arithmetic expressions or function call syntax in text parsing.