RegularExpressionMatchPosition()

语法

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

参数

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

返回值

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

示例

See ExamineRegularExpression() for an example.

参阅

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

已支持操作系统

所有

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