Risk-Aware Code Review: Auto Approve Low-Risk Changes
LiveReview LiveReview LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt GitHub Install Now

We'd appreciate a star

function::ngroups - Number of subexpressions in the last match.

Arguments

       None

Description

       returns the number of subexpressions from the last successful use of the =~ regex matching operator.

       Note that this number includes subexpressions which are present in the regex but did not match any
       string; for example, given the regex “a|(b)”, the subexpressions will count the group for (b) regardless
       of whether it matched a string or not. Throws an error if the last use of =~ was a failed match.

Name

       function::ngroups - Number of subexpressions in the last match.

See Also

tapset::regex(3stap)

SystemTap Tapset Reference                         April 2024                           FUNCTION::NGROUPS(3stap)

Synopsis

           ngroups:long()

See Also