table of contents
other versions
- buster 4.0-1
- buster-backports 4.4-1~bpo10+1
- testing 4.4-2
- unstable 4.4-2
- experimental 4.5-1
FUNCTION::MATCHED(3stap) | A collection of standard strin | FUNCTION::MATCHED(3stap) |
NAME¶
function::matched - Return a given matched subexpression.SYNOPSIS¶
matched:string(n:long)
ARGUMENTS¶
nindex 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.SEE ALSO0¶
tapset::regex(3stap)November 2020 | SystemTap Tapset Reference |