RegularExpressionNamedGroupLength()

语法

Result = RegularExpressionNamedGroupLength(#RegularExpression, GroupName$)
概要
Returns the length of the specified named regular expression group after a call to NextRegularExpressionMatch().

参数

#RegularExpression The regular expression to use. ExamineRegularExpression() and NextRegularExpressionMatch() must have been called on this regular expression.
GroupName$ The name of the group to extract. The group name is case sensitive.

返回值

Returns the character position of the group.

Remarks

Groups in a regular expression are defined by surrounding a sub-expression with braces "(" and ")". Groups can either accessed by index using functions like RegularExpressionGroupLength() or they can be assigned a name using the "(?<name>)" syntax as shown in the example for the RegularExpressionNamedGroup() function.

参阅

ExamineRegularExpression(), NextRegularExpressionMatch(), RegularExpressionNamedGroup(), RegularExpressionNamedGroupPosition(), RegularExpressionGroupLength()

已支持操作系统

所有

<- RegularExpressionNamedGroup() - RegularExpression Index - RegularExpressionNamedGroupPosition() ->