移除 ANSI 转义序列

移除终端颜色和控制用的 ANSI 转义码,保留文本内容。

输入: 文本结果: 文本

文本输入

案例

Remove terminal styling from FAIL

Remove terminal styling from FAIL. The input is a small public learning fixture; it contains no private production data.

输入

FAIL

Expected answer

FAIL
Remove terminal styling from PASS

Remove terminal styling from PASS. The input is a small public learning fixture; it contains no private production data.

输入

PASS

Expected answer

PASS
Remove terminal styling from Release 2.1

Remove terminal styling from Release 2.1. The input is a small public learning fixture; it contains no private production data.

输入

Release 2.1

Expected answer

Release 2.1
Remove terminal styling from Warning: 3 retries

Remove terminal styling from Warning: 3 retries. The input is a small public learning fixture; it contains no private production data.

输入

Warning: 3 retries

Expected answer

Warning: 3 retries
Remove terminal styling from README.md

Remove terminal styling from README.md. The input is a small public learning fixture; it contains no private production data.

输入

README.md

Expected answer

README.md
cursor commands and clear screen

输入

Hello, World!

Expected answer

Hello, World!
text containing javascript escape representation of ansi escape codes

输入

4ed412276a2c54f50822cc09.bin

45 bytes

下载

Expected answer

UTF-8 text · exact bytes
\033[32;1;3;4;9mHello, \033[32;1;3;4;9mWorld!
text using x1b escape code

输入

Hello, World!

Expected answer

Hello, World!
text with incomplete codes

输入

[31 Hello, World!

Expected answer

ello, World!

相关工具

实用工具

操作参考

查看原始技术文档 (English)