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 12345import System; RegExp re = /^foo$/i;var re2 = re; // Compiler errorvar re3 = re.toExternal(); // OK Share HTML | BBCode | Direct Link