Treatment capture
regex::capture
Parameters
↳ var regex:
string
Inputs
⇥ text:
Stream<string>
Outputs
↦ captured:
Stream<Vec<string>>
↦ error:
Block<string>
↦ is_captured:
Stream<Vec<bool>>
Captures groups of text according to a regex.
Every string coming through the text
stream is passed through regex
.
is_captured
tells for each group if something were found or not, captured
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.