Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

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

Description

Remove ANSI escape codes

Submitted by anonymous - 2 years ago