Regular Expressions 101

Community Patterns

Remove ANSI Escape Code

1

Regular Expression
Python

r"
\x1B(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~])
"
gm

Description

Remove ANSI Escape Code

Submitted by diaogong - 8 months ago