https://www.rsyslog.com/doc/v8-stable/rainerscript/functions/rs-replace.html?highlight=replace

replace()

Purpose

replace(str, substr_to_replace, replace_with)

Returns new string with all instances of substr_to_replace replaced by replace_with.

Example

replace("foo bar baz", " b", ", B")

produces

"foo, Bar, Baz"

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注