ReferenceMiscellaneous

Regex.Escape

Escapes text so Regex.new matches it literally. Every character from .*+?^$()[]{}|\\ is prefixed with a backslash.

Syntax

Regex.Escape(text: string) -> string

Parameters

ParameterTypeDescription
textstringText to match literally.

Returns

TypeDescription
stringThe text with every pattern special character escaped.

Example

print(Regex.Escape("a.b*c"))

These are Game executor contracts. Check build requirements and session lifetimes before using them.