Description
Searches for a string specified by the search
parameter, and replaces it with the string specified by the replaceWith
parameter. The search string can be a literal, a regular expression, or a combination of both. Since the string can contain regular expressions, use a backslash to escape special characters. Special characters are [^$.|?*+()
.
C#
vb.net
Parameters
search
The string to find and replace.replaceWith
The replacement string.Returns
The number of occurences that were found and replaced.Examples
C#
vb.net