FUNCTION::MATCHED\_ST(3stap) A collection of standard strin FUNCTION::MATCHED\_ST(3stap)

# [NAME](#NAME)

function::matched\_str - Return the last matched string.

# [SYNOPSIS](#SYNOPSIS)

```


    matched_str:string()
```

# [ARGUMENTS](#ARGUMENTS)

None

# [DESCRIPTION](#DESCRIPTION)

returns the string matched by the last successful use of the =~ regexp matching operator. Returns an error if the last use of =~ led to a failed match.

# [SEE ALSO0](#SEE_ALSO0)

[*tapset::regex*(3stap)](/man/enterprise-packages/systemtap/tapset::regex.3stap)

September 2026 SystemTap Tapset Reference Ver

---

Document: function::matched_str(3stap) from systemtap 5.6-r0 (Chainguard OS)
Source: https://sourceware.org/git/systemtap.git
