DeepCopy (Regex function)
Return a deep copy of a Regex object (Regex class)
This method makes a copy of the Regex object.
This method is identical to Copy. There is no particular reason to explicitly use DeepCopy instead of Copy but DeepCopy is implicitly called when a Regex object is part of an object tree or forest that is being deep-copied. For more information about deep copyability, see "Copying objects".
Syntax
%outRegex = regex:DeepCopy
Syntax terms
%outRegex | A new Regex object |
---|---|
regex | Regex object, which may be Null |
See also
Is this a Unicode regular expression (Regex class)
This method indicates whether or not the regular expression used to create the Regex object was specified in Unicode.
Syntax
%boolean = regex:IsUnicode
Syntax terms
%boolean | Boolean value that indicates whether (true) or not (false) the regular expression used to constuct the Regex object was Unicode. |
---|---|
regex | The Regex object |
Examples
The following example:
b %regex is object regex %regex = new("(((Tomorrow|Today) is)|(Yesterday was)) Pie Day", options="i") print %regex:isUnicode %regex = new("((Tomorrow|Today) is)|(Yesterday was) π Day":u, options="i") print %regex:isUnicode end
displays:
False True