RegularExpressionNamedGroupLength()
Syntax
Result = RegularExpressionNamedGroupLength(#RegularExpression, GroupName$)Description
Returns the length of the specified named regular expression group after a call to NextRegularExpressionMatch().
Parameters
#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.
Return value
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.
See Also
ExamineRegularExpression(), NextRegularExpressionMatch(), RegularExpressionNamedGroup(), RegularExpressionNamedGroupPosition(), RegularExpressionGroupLength()
Supported OS
All