Tags · Functions · Objects
Lucee Object Methods Reference
Choose a function:

Object Method String.replaceNoCase

Replaces occurrences of substring1 with substring2, in the
specified scope. The search is case-insensitive.
String.replaceNoCase(any substring1,[string substring2,[string scope]]):string

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
substring1 any  Yes Substring for which to search. Optionally pass a Struct with key/value pairs to do a replace all
substring2 string  No Substring with which to replace the found matches. This arg is required if the substring1 arg is a string
scope string  No scope for the execution:
  • one (default): Replace the first occurrence
  • all: Replace all occurrences