Replaces occurrences of substring1 with substring2, in the
specified scope. The search is case-insensitive.
Lucee Function Reference
replacenocase()
Example
replacenocase(string string,any substring,[string replacement,[string scope]]):string
Category
string
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.
Name | Type | Required | Default Value | Description |
---|---|---|---|---|
string | string | Yes | A string (or variable that contains one) within which to replace substring. | |
substring | any | Yes | Substring for which to search. Optionally pass a Struct with key/value pairs to do a replace all | |
replacement | string | No | Substring with which to replace the found matches. This arg is required if the substring1 arg is a string | |
scope | string | No | one |
scope for the execution: |