Treatment captureNamed
regex::captureNamed
Parameters
↳ var regex:
string
Inputs
⇥ text:
Stream<string>
Outputs
↦ captured:
Stream<Vec<string>>
↦ error:
Block<string>
↦ is_captured:
Stream<Vec<bool>>
↦ names:
Stream<Vec<string>>
Captures named groups of text according to a regex.
Every string coming through the text
stream is passed through regex
.
names
tells the group names, 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.