In the fullness of time, we want to have a generic Pattern
type with a builder DSL like this as shown in Declarative String Processing Overview to support general-purpose data processing. Regex
is a scoped-down version of that, but aims to offer better familiarity and adopt regex conventions, e.g. to have .0
refer to the whole match followed by captures. Regex
could conform to a future PatternComponent
protocol and be used in a pattern builder block.
2 Likes