string.replaceNoCase()

Replaces occurrences of substring1 with substring2, in the specified scope. The search is case-insensitive.

string.replaceNoCase( substring [, replacement [, scope ] ] )

Returns: String

Argument Description
substring
any, required

Substring for which to search.

Optionally pass a Struct with key/value pairs to do a replace all

Alias: substring1

replacement
string, optional

Substring with which to replace the found matches.

This arg is required if the substring1 arg is a string

Alias: substring2

scope
string, optional

scope for the execution:

  • one (default): Replace the first occurrence
  • all: Replace all occurrences

Examples

There are currently no examples for this function

See also