A read-only property that contains the text of the pattern, excluding the forward slashes and "g" or "i" flags.
RegEx
source is a property of an individual regular expression object. It is read-only. You cannot change this property directly. However, calling the compile method changes the value of this property.