Regex methods syntax: Difference between revisions
(Automatically generated page update) |
(No difference)
|
Revision as of 15:12, 11 March 2022
The syntax for each of the Regex class methods is shown below.
Square brackets indicate optional elements of the method invocation. See also the notation conventions for methods and the List of Regex methods.
%outRegex = regex:Copy
%outRegex = regex:DeepCopy
%boolean = regex:IsUnicode
[%itemNum =] regex:Locate( sl, [startItem], [StartCol= number], - [EndCol= number])
[%itemNum =] regex:LocateUp( sl, [startItem], [StartCol= number], - [EndCol= number])
%number = regex:Match( string, [start= number], [capture= stringlist])
%regex = [%(Regex):]New( regex, [Replace= string], [Options= string]) Throws InvalidRegex
%string = regex:Options
%string = regex:RegexString
%unicode = regex:RegexUnicode
%string = regex:Replace( string, [replacement], [Options= string])
%string = regex:ReplaceString
%unicode = regex:ReplaceUnicode
%sl = regex:Split( string, [Add= regexSplitOutputOptions])
%subsetList = regex:Subset( sl, [StartCol= number], [EndCol= number])
%currentBoolean = regex:Trace regex:Trace = newBoolean
%unicode = regex:UnicodeReplace( unicode, [replacement], [Options= string])