Replace
Method Signature
Replace(string=[string], substring1=[string], obj=[any], scope=[string])Arguments
Argument
Type
Required
Description
Default
Examples
Replace uppercase 'U' with lowercase 'u'
getVal = replace( "Boxlang", "U", "u" );
writeDump( getVal );
Replace uppercase 'O' with lowercase 'o', but only once
Example using Callback Function
Example with start argument (Replace lowercase 'o' with uppercase 'O' from the third position)
Additional Examples
Related
Last updated
Was this helpful?
