valueOf Summary Returns the primitive regular expression value wrapped by the System.RegExp object. Usage public external valueOf() Returns The primitive regular expression value wrapped by the System.RegExp object. Description Returns the primitive regular expression value wrapped by the System.RegExp object. Examples Basic Usage 1234import System; System.RegExp re = /.+/;Console.log(re.valueOf()); Share HTML | BBCode | Direct Link