Interface IStdMatchClass
RD-VBAL §6.2 VBScript Regular Expressions: the Match class, one match of a pattern in a text.
[StdLibClass(null, IsCreatable = false)]
public interface IStdMatchClass
Remarks
Value() is the default member of the class, so a match is the text it matched where a value is wanted. Its properties are read-only: an
assignment to one is error 450. Only a MatchCollection makes one.
Methods
FirstIndex()
Gets where the match starts in the text, counted from 0.
[StdLibMember(null, Kind = StdLibMemberKind.PropertyGet)]
RuntimeSemanticsEvaluationResult<VBLongValue> FirstIndex()
Returns
- RuntimeSemanticsEvaluationResult<VBLongValue>
A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.
Length()
Gets how many characters the match is.
[StdLibMember(null, Kind = StdLibMemberKind.PropertyGet)]
RuntimeSemanticsEvaluationResult<VBLongValue> Length()
Returns
- RuntimeSemanticsEvaluationResult<VBLongValue>
A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.
SubMatches()
Gets what each group of the pattern matched.
[StdLibMember(null, Kind = StdLibMemberKind.PropertyGet, ReturnType = typeof(IStdSubMatchesClass))]
RuntimeSemanticsEvaluationResult<VBObjectValue> SubMatches()
Returns
- RuntimeSemanticsEvaluationResult<VBObjectValue>
A RuntimeSemanticsEvaluationResult whose value is a
SubMatches(IStdSubMatchesClass).
Value()
Gets the text that was matched.
[StdLibMember(null, Kind = StdLibMemberKind.PropertyGet, UserMemId = 0)]
RuntimeSemanticsEvaluationResult<VBStringValue> Value()
Returns
- RuntimeSemanticsEvaluationResult<VBStringValue>
A RuntimeSemanticsEvaluationResult object encapsulating the result of the successful operation, or the error metadata otherwise.