AcediaDocumentation

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

FunctionPurpose
Regex.newCreates a Regex object for a pattern.
Regex.EscapeEscapes regex metacharacters in literal text.

On this page