Table of Contents

Interface IStdRegExpClass

Namespace
RDCore.SDK.Runtime.Abstract.StdLib
Assembly
RDCore.SDK.dll

RD-VBAL RegExp Module

public interface IStdRegExpClass

Remarks

This module from VBScript.RegExp.5.5 was folded into the Standard Library, but not to a corresponding MS-VBAL section.

Methods

Execute(VBStringValue)

Executes the current regex match configuration against the provided source string.

RuntimeSemanticsEvaluationResult Execute(VBStringValue sourceString)

Parameters

sourceString VBStringValue

The input string to match against the configured pattern.

Returns

RuntimeSemanticsEvaluationResult

A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.

IStdRegExpClass__getGlobal()

Gets a flag indicating whether the regex returns after the first match (false) or not (true).

RuntimeSemanticsEvaluationResult IStdRegExpClass__getGlobal()

Returns

RuntimeSemanticsEvaluationResult

A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.

IStdRegExpClass__getIgnoreCase()

Gets or sets a flag indicating whether the regex evaluates case-insensitive (true) or case-sensitive (false) matches.

RuntimeSemanticsEvaluationResult IStdRegExpClass__getIgnoreCase()

Returns

RuntimeSemanticsEvaluationResult

A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.

IStdRegExpClass__getMultiline()

Gets a flag indicating whether ^ and $ denote the start/end of the input (false) or of a single line (true) of it.

RuntimeSemanticsEvaluationResult IStdRegExpClass__getMultiline()

Returns

RuntimeSemanticsEvaluationResult

IStdRegExpClass__getPattern()

Gets the Regular Expression pattern string for this instance.

RuntimeSemanticsEvaluationResult IStdRegExpClass__getPattern()

Returns

RuntimeSemanticsEvaluationResult

IStdRegExpClass__setGlobal(VBBooleanValue)

Sets a flag indicating whether the regex returns after the first match (false) or not (true).

RuntimeSemanticsEvaluationResult IStdRegExpClass__setGlobal(VBBooleanValue value)

Parameters

value VBBooleanValue

Returns

RuntimeSemanticsEvaluationResult

A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.

IStdRegExpClass__setIgnoreCase(VBBooleanValue)

Sets a flag indicating whether the regex evaluates case-insensitive (true) or case-sensitive (false) matches.

RuntimeSemanticsEvaluationResult IStdRegExpClass__setIgnoreCase(VBBooleanValue value)

Parameters

value VBBooleanValue

Returns

RuntimeSemanticsEvaluationResult

A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.

IStdRegExpClass__setMultiline(VBBooleanValue)

Sets a flag indicating whether ^ and $ denote the start/end of the input (false) or of a single line (true) of it.

RuntimeSemanticsEvaluationResult IStdRegExpClass__setMultiline(VBBooleanValue value)

Parameters

value VBBooleanValue

Returns

RuntimeSemanticsEvaluationResult

IStdRegExpClass__setPattern(VBStringValue)

Sets the Regular Expression pattern string for this instance.

RuntimeSemanticsEvaluationResult IStdRegExpClass__setPattern(VBStringValue value)

Parameters

value VBStringValue

Returns

RuntimeSemanticsEvaluationResult

Replace(VBStringValue, VBVariantValue)

Replaces regex matches in the provided source string with the specified replacement value.

RuntimeSemanticsEvaluationResult Replace(VBStringValue sourceString, VBVariantValue replaceVar)

Parameters

sourceString VBStringValue

The input string to replace matched content from.

replaceVar VBVariantValue

The replacement value for any pattern matches.

Returns

RuntimeSemanticsEvaluationResult

A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.

Test(VBStringValue)

Tests whether the specified source string matches the currently configured Pattern for this instance.

RuntimeSemanticsEvaluationResult Test(VBStringValue sourceString)

Parameters

sourceString VBStringValue

The input string to test against the configured pattern.

Returns

RuntimeSemanticsEvaluationResult

A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.