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

NameTypeRequiredDefault
textstringYes-
patternstringYes-

Example

ZregexGroups{warned by <@123> : spamming;warned by <@(\d+)> : (.+)}