toExternal

Summary

Constructs a new external RegExp object with the value of the internal RegExp object.

Usage

public override external toExternal()

Returns

A new external RegExp object with the same pattern and flags.

Description

Constructs a new external RegExp object with the value of the internal RegExp object.

Examples

Basic Usage
1
2
3
4
5
import System;
 
RegExp re = /^foo$/i;
var re2 = re;              // Compiler error
var re3 = re.toExternal(); // OK

Share

HTML | BBCode | Direct Link