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::NGROUPS(3stap) | A collection of standard strin | FUNCTION::NGROUPS(3stap) |
NAME¶
function::ngroups - Number of subexpressions in the last match.SYNOPSIS¶
ngroups:long()
ARGUMENTS¶
NoneDESCRIPTION¶
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.
SEE ALSO0¶
tapset::regex(3stap)October 2018 | SystemTap Tapset Reference |