RegularExpressionMatchPosition()

Syntax

Result = RegularExpressionMatchPosition(#RegularExpression)
Description
Returns the position within the input string (passed to ExamineRegularExpression()) of the current match after a call to NextRegularExpressionMatch().

Parameters

#RegularExpression The regular expression to use. ExamineRegularExpression() and NextRegularExpressionMatch() must have been called on this regular expression.

Return value

The position of the match within the original string. The first character in the string is at position 1.

Example

See ExamineRegularExpression() for an example.

See Also

ExamineRegularExpression(), NextRegularExpressionMatch(), RegularExpressionMatchString(), RegularExpressionMatchLength()

Supported OS

All

<- RegularExpressionMatchLength() - RegularExpression Index - RegularExpressionMatchString() ->