Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Warning

Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8 for Server/Data Center? Click here !

Info
titleAvailability

This routine is available starting with katl-commons SIL Engine™ 1.0.

Syntax

replace(str, search_str, replacement_str)

...

Excerpt

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

Parameters

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

Example

Example 1

Code Block
wret = replace("foobar", "foo", "bar");
print(wret);

Print barbar

Example 2

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

Print ba

See also

Filter by label (Content by label)
showLabelsfalse
max100
showSpacefalse
cqllabel = "string_routines"
labelsstring_routines