Table of Contents
strescDescriptionProcess escape sequences in a string. Function prototypestring stresc <string:Text> Arguments
Return valueA string containing the escaped text. Examplestring s set s "The newlines has been escaped\\r\\n...and so have the \\\"quotation marks\\\"" // echo the escaped text echo "Escaped:" echo <stresc s> // echo the unescaped text echo "Unescaped:" echo s
The escape sequences above needed to be double-escaped (i.e. '\\n') because the script interpreter processes escape sequences in literal strings once.
… the output of which is written to the event log by echo as: Escaped: The newlines has been escaped ...and so have the "quotation marks" Unescaped: The newlines has been escaped\r\n...and so have the \"quotation marks\" CommentsRecognised escape sequences
See alsoExcept where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Share Alike 3.0 Unported
|