Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

replace(str, search_str, replacement_str)

Package


Alias


Pkg Usage


Description

Excerpt
hiddentrue

Replaces the search_str string with replacement_str in str and returns the resulting string.

Replaces the search_str string with replacement_str in str and returns the resulting string. The string str is not modified.

...

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

Parameter name

Type

Required

Description

str

String

Yes

Specifies the string to replace characters for.

search_str

String

Yes

Specifies a character expression to search for in str.

replacement_str

String

Yes

Specifies the string that replaces search_str.

Return Type

String

Examples

...

Code Block
languagejs
wret = replace("aaa", "aa", "b");
print(wret);

Print ba

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "string_routine" and space = currentSpace ( )
labelsarray_routines