FUNCTION::STR\_REPLAC(3stap) A collection of standard strin FUNCTION::STR\_REPLAC(3stap)

# [NAME](#NAME)

function::str\_replace - str\_replace Replaces all instances of a substring with another

# [SYNOPSIS](#SYNOPSIS)

```


    str_replace:string(prnt_str:string,srch_str:string,rplc_str:string)
```

# [ARGUMENTS](#ARGUMENTS)

*prnt\_str*

the string to search and replace in

*srch\_str*

the substring which is used to search in *prnt\_str* string

*rplc\_str*

the substring which is used to replace *srch\_str*

# [DESCRIPTION](#DESCRIPTION)

This function returns the given string with substrings replaced.

September 2026 SystemTap Tapset Reference Ver

---

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