NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Regex.Unescape

Unescapes any escaped characters in the input string.

[Visual Basic]
Public Shared Function Unescape( _
   ByVal str As String _
) As String
[C#]
public static string Unescape(
   string str
);
[C++]
public: static String* Unescape(
   String* str
);
[JScript]
public static function Unescape(
   str : String
) : String;

Parameters

str
String containing the text to convert.

Return Value

A string of characters with any escaped characters converted to their unescaped form.

Remarks

As an example, Unescape replaces ?\x61? with ?a? and ?\n? with a carriage-return.Unescape reverses the transformation done by Escape. (Of course, Escape cannot perfectly reverse Unescape because it cannot deduce from an unescaped string which characters might have been previously escaped.)

See Also

Regex Class | Regex Members | System.Text.RegularExpressions Namespace