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
| Parameter | Type | Description |
|---|---|---|
text | string | Text to match literally. |
Returns
| Type | Description |
|---|---|
string | The 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.
