StringUtils.ReplaceStringInstance

String replace function that support

public static string ReplaceStringInstance(string origString,
	string findString,
	string replaceWith,
	int instance,
	bool caseInsensitive)

Return Value

updated string or original string if no matches

Parameters

origString
Original input string

findString
The string that is to be replaced

replaceWith
The replacement string

instance
Instance of the FindString that is to be found. if Instance = -1 all are replaced

caseInsensitive
Case insensitivity flag


See also:

Class StringUtils

© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic