Expand description
Regex processing nodes.
Structs§
- Pattern
Match - Promoted pattern match:
trueifinputmatchespatternunder the literal / glob / regex promotion rules. Sibling toregex_match(which takes a raw regex) — use this when the pattern may be a strict string, a*glob, or a regex and the kind should be auto-detected from its shape. - Regex
Extract - Regex extract: extract the first capture group (or full match).
- Regex
Match - Regex match: test if input matches a pattern.
- Regex
Replace - Regex replace: substitute all matches of a pattern with the
replacement string. The compiled
Regexis cached at construction.
Enums§
- Pattern
Dialect - Which dialect
promote_pattern/compile_patternpicked.
Functions§
- compile_
pattern - Promote and compile
sourceinto an anchoredRegex. - promote_
pattern - Classify
sourceand return its anchored regex source + dialect. Pure — does not compile. Promotion rules: