ZregexGroups
Returns every capture group of the first match of the pattern, joined by newlines. The whole match is excluded. Returns an empty string when the pattern does not match.
Syntax
ZregexGroups{text;pattern}Arguments
| Name | Type | Required | Default |
|---|---|---|---|
| text | string | Yes | - |
| pattern | string | Yes | - |
Example
ZregexGroups{warned by <@123> : spamming;warned by <@(\d+)> : (.+)}