Test, validate and match regular expressions
This regex matches a substring enclosed in literal parentheses, capturing the content between them as a group. It requires at least one character inside, so empty parentheses are ignored. Useful for extracting quoted notes, clarification text, or data from logs and configuration files.