app-workflow_engine

On this page:

replace

Summary

Replaces a string with another string.

Description

Returns a new string with some or all matches of a pattern replaced by a replacement. The pattern can be a string or a RegExp, and the replacement can be a string or a function to be called for each match (function type not supported in workflow engine).

Route

No Northbound API Available

Roles

Parameters

DetailsExampleSchema
Name Type Required Description
str string yes The string to do the replacement on
substr string yes The regular expression or substring that, when matched, is to be replaced by newSubStr
newSubstr string yes The string that replaces the substring specified by the specified regexp or substr parameter

Return

DetailsExampleSchema
Name Type Description
replacedString string A new string with some or all matches of a pattern replaced by a replacement