Regex.to_string

Regex.to_string

Regex.to_string

Function

Returns the script text form of the regular expression.

Syntax

Parameters

No parameters.

Return value

TypeDescription
StringReturns a string of the form /pattern/flags.

Example

Notes

  • The return value only expresses pattern and flags, without re-escaping pattern.