Functions

csReplace

Supported By

Syntax

[the] csReplace of ( haystack , needle , noodle )

csReplace ( haystack , needle , noodle )

Haystack, needle, and noodle yield strings.

Description

The csReplace function returns the string haystack with the first occurrence of the string needle replaced with the string noodle.

Needle is case-sensitive. For a case-insensitive version of this function, see replace. For a regular expression-based version of this function, see regReplace.

See Also

csReplaceAll, replace