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::matched - Return a given matched subexpression.

Arguments

n
           index to the subexpression to return. 0 corresponds to the entire regular expression.

Description

       returns the content of the n'th subexpression of the last successful use of the =~ regex matching
       operator. Returns an empty string if the n'th subexpression was not matched (e.g. due to alternation).
       Throws an error if the last use of =~ was a failed match, or if fewer than n subexpressions are present
       in the original regexp.

Name

       function::matched - Return a given matched subexpression.

See Also

tapset::regex(3stap)

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

Synopsis

           matched:string(n:long)

See Also