docsFunctionsStringZregexReplace

ZregexReplace

Replaces all substrings in the text that match the regular expression pattern with the specified replacement.

Syntax

ZregexReplace{text;pattern;replacement}

Arguments

NameTypeRequiredDefault
textstringYes-
patternstringYes-
replacementstringYes-

Example

ZregexReplace{hello   world;\s+;-}