Click or drag to resize
RegexReplace Method (String, String, String, RegexOptions)
In a specified input string, replaces all strings that match a specified regular expression with a specified replacement string. Specified options modify the matching operation.

Namespace: System.Text.RegularExpressions
Assembly: CSharpXamlForHtml5.System.dll (in CSharpXamlForHtml5.System.dll.dll) Version: 1.0.0.0
Syntax
C#
public static string Replace(
	string input,
	string pattern,
	string replacement,
	RegexOptions options
)

Parameters

input
Type: SystemString
The string to search for a match.
pattern
Type: SystemString
The regular expression pattern to match.
replacement
Type: SystemString
The replacement string.
options
Type: System.Text.RegularExpressionsRegexOptions
A bitwise combination of the enumeration values that provide options for matching.

Return Value

Type: String
A new string that is identical to the input string, except that the replacement string takes the place of each matched string.
See Also