Regex
Regex objects, literal escaping and match results.
A Regex object holds a compiled pattern with match, search, and replace operations.
- Match arrays contain the full match followed by capture groups.
- Replacement text is literal in the current implementation.
- Older compiled objects can be retired when the bounded regex pool fills.
Functions
| Function | Purpose |
|---|---|
| Regex.new | Creates a Regex object for a pattern. |
| Regex.Escape | Escapes regex metacharacters in literal text. |
