TAPSET::REGEX(3stap)
β¨ TAPSET::REGEX β¨
okay bestie, welcome to tapset::regex π β this is the systemtap regex tapset, aka the little group chat where your SystemTap scripts get to gossip about regular expressions. it's giving pattern matching but make it probe-y. no cap.
πΈ DESCRIPTION πΈ
here's the whole squad, one by one. each of these is a function, and each one links out to its own full manual page if you want the deep lore (iykyk).
matched_strβ returns the last matched string. that's it, that's the whole vibe. the most recent thing your regex latched onto? yeah, this hands it back to you. π«Ά
see function::matched_str(3stap) for details.
matchedβ returns a given matched subexpression. so like, when your regex has groups and you only want one of them, not the whole thing? this is your girl. π
see function::matched(3stap) for details.
ngroupsβ the number of subexpressions in the last match. literally just a count. how many little groups did your regex pop out last time? this tells you. super useful, super simple, iconic. β
see function::ngroups(3stap) for details.
π¦ SEE ALSO π¦
the rest of the extended universe, go read these too bestie:
function::matched_str(3stap)function::matched(3stap)function::ngroups(3stap)stap(1)stapprobes(3stap)
and that's the whole page, bestie, we ate and left no crumbs π β¨
SystemTap Tapset Reference Β· September 2026 Β· TAPSET::REGEX(3stap) β mwah, go match some patterns π
π¦ where this page comes from
- centos-stream 10: systemtap-client 5.6-3.el10 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- centos-stream 9: systemtap-client 5.6-3.el9 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 43: systemtap-client 5.6-1.fc43 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 44: systemtap-client 5.6-1.fc44 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms