Captures groups of text according to a regex.
Every string coming through the
text stream is passed through
is_captured tells for each group if something were found or not,
contains the groups contents (or empty string if group is not captured).
error is emitted only if regex contains error.
The regex syntax is Unicode-aware. Please refer to Regex Syntax in documentation for full syntax description.