Copy (Regex function)
Return a copy of a Regex object (Regex class)
This method makes a copy of the Regex object.
Syntax
%outRegex = regex:Copy
Syntax terms
%outRegex | A new Regex object |
---|---|
regex | Regex object, which may be Null |
Examples
The following make a copy of a Regex object and then uses it to do a match:
%regex is object regex %regex2 is object regex %str is longstring ... %regex2 = %regex:copy if %regex2:match(%str) then ... end if