Click or drag to resize
RegexEscape Method
Escapes a minimal set of characters (\, *, +, ?, |, {, [, (,), ^, $,., #, and white space) by replacing them with their escape codes. This instructs the regular expression engine to interpret these characters literally rather than as metacharacters.

Namespace: System.Text.RegularExpressions
Assembly: CSharpXamlForHtml5.System.dll (in CSharpXamlForHtml5.System.dll.dll) Version: 1.0.0.0
Syntax
C#
public static string Escape(
	string str
)

Parameters

str
Type: SystemString
The input string that contains the text to convert.

Return Value

Type: String
A string of characters with metacharacters converted to their escaped form.
See Also