 | StringUtilsReplaceString Method |
Replaces a substring within a string with another substring with optional case sensitivity turned off.
Namespace:
Koden.Utils
Assembly:
Koden.Utils (in Koden.Utils.dll) Version: 1.1.6453.26060
Syntaxpublic static string ReplaceString(
string origString,
string findString,
string replaceString,
bool caseInsensitive
)
Public Shared Function ReplaceString (
origString As String,
findString As String,
replaceString As String,
caseInsensitive As Boolean
) As String
public:
static String^ ReplaceString(
String^ origString,
String^ findString,
String^ replaceString,
bool caseInsensitive
)
static member ReplaceString :
origString : string *
findString : string *
replaceString : string *
caseInsensitive : bool -> string
Parameters
- origString
- Type: SystemString
String to do replacements on - findString
- Type: SystemString
The string to find - replaceString
- Type: SystemString
The string to replace found string wiht - caseInsensitive
- Type: SystemBoolean
If true case insensitive search is performed
Return Value
Type:
Stringupdated string or original string if no matches
See Also