取消字串跳脫

将文本中的跳脫序列還原為对應字元。

輸入: 文本結果: 文本

文本輸入

範例

complex

輸入

null\0backspace\btab\tnewline\nverticaltab\vformfeed\fcarriagereturn\rdoublequote\"singlequote\'hex\xa9unicode\u2665codepoint\u{1D306}

Expected answer

Hexadecimal bytes
6e 75 6c 6c 00 62 61 63 6b 73 70 61 63 65 08 74 61 62 09 6e 65 77 6c 69 6e 65 0a 76 65 72 74 69 63 61 6c 74 61 62 0b 66 6f 72 6d 66 65 65 64 0c 63 61 72 72 69 61 67 65 72 65 74 75 72 6e 0d 64 6f 75 62 6c 65 71 75 6f 74 65 22 73 69 6e 67 6c 65 71 75 6f 74 65 27 68 65 78 c2 a9 75 6e 69 63 6f 64 65 e2 99 a5 63 6f 64 65 70 6f 69 6e 74 f0 9d 8c 86
quotes

輸入

Hello \"World\"! Escape \'these\' quotes.

Expected answer

Hello "World"! Escape 'these' quotes.
special characters

輸入

Fizz & buzz\n\ttabbed newline\rcarriage returned line\nbackspace character: \"\b\" form feed character: \"\f\"

Expected answer

Hexadecimal bytes
46 69 7a 7a 20 26 20 62 75 7a 7a 0a 09 74 61 62 62 65 64 20 6e 65 77 6c 69 6e 65 0d 63 61 72 72 69 61 67 65 20 72 65 74 75 72 6e 65 64 20 6c 69 6e 65 0a 62 61 63 6b 73 70 61 63 65 20 63 68 61 72 61 63 74 65 72 3a 20 22 08 22 20 66 6f 72 6d 20 66 65 65 64 20 63 68 61 72 61 63 74 65 72 3a 20 22 0c 22
UnescapeString: escape sequences

輸入

\a\b\f\n\r\t\v\'\"

Expected answer

Hexadecimal bytes
07 08 0c 0a 0d 09 0b 27 22
UnescapeString: hexadecimals

輸入

\x00\xAA\xaa

Expected answer

Hexadecimal bytes
00 c2 aa c2 aa
UnescapeString: octals

輸入

\0\01\012\1\12

Expected answer

Hexadecimal bytes
00 01 0a 01 0a
UnescapeString: unicode

輸入

\u0061\u{0062}

Expected answer

ab

相关工具

實用工具

操作参考

查看原始技术文檔 (English)