---
name: "tapset::regex"
section: "3stap"
platform: "linux"
package: "systemtap-doc"
version: "5.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/tapset::regex"
---

# tapset::regex(3stap)

systemtap regex tapset

## NAME

tapset::regex - systemtap regex tapset

## DESCRIPTION

-

  - **matched\_str**

  Return the last matched string.

-

  See  [*function::matched\_str*(3stap)](/function::matched_str/3stap.md)\
    for details.

- **matched**

  Return a given matched subexpression.

-

  See  [*function::matched*(3stap)](/function::matched/3stap.md)\
    for details.

- **ngroups**

  Number of subexpressions in the last match.

-

  See  [*function::ngroups*(3stap)](/function::ngroups/3stap.md)\
    for details.

## SEE ALSO

[*function::matched\_str*(3stap)](/function::matched_str/3stap.md), [*function::matched*(3stap)](/function::matched/3stap.md), [*function::ngroups*(3stap)](/function::ngroups/3stap.md), [*stap*(1)](/stap/1.md), [*stapprobes*(3stap)](/stapprobes/3stap.md)
