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:


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