Regular Expressions 101

Community Library Entry

1

Regular Expression
Python

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

Description

Remove ANSI Escape Code

Submitted by diaogong - a year ago