Table of Contents

Class RegexCapture

Namespace
Albatross.Expression.Prefix
Assembly
Albatross.Expression.dll

The operation use Regex to capture a part of the input text. It takes 3 parameters. parameter 1 (text): the text to be parsed parameter 2 (text): a regex pattern parameter 3 (integer): Captured group index. If regex matches, return the specified captured group value. The default value is 0 if not specified

public class RegexCapture : PrefixExpression, IPrefixExpression, IExpression, IToken
Inheritance
RegexCapture
Implements
Inherited Members
Extension Methods

Constructors

RegexCapture()

public RegexCapture()

Methods

Run(List<object>)

Executes the prefix function with the evaluated operand values. Derived classes should override this method to implement specific function logic.

protected override object Run(List<object> operands)

Parameters

operands List<object>

The list of evaluated operand values.

Returns

object

The result of the function.