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.RegularExpressionsAssembly: CSharpXamlForHtml5.System.dll (in CSharpXamlForHtml5.System.dll.dll) Version: 1.0.0.0
Syntax public static string Escape(
string str
)
Parameters
- str
- Type: SystemString
The input string that contains the text to convert.
Return Value
Type:
StringA string of characters with metacharacters converted to their escaped form.
See Also