StringFunctions.Replace

Extension method for String that allows a case-insensitive Replace.

public static string Replace(string originalString,
	string oldValue,
	string newValue,
	StringComparison comparison)

Return Value

A string with oldValue replaced with newValue.

Parameters

originalString
The original string.

oldValue
The value to replace.

newValue
The value to replace it with.

comparison
The type of comparison to do.

Remarks

Taken from http://stackoverflow.com/questions/244531/is-there-an-alternative-to-string-replace-that-is-case-insensitive


See also:

Class StringFunctions