Regular Expressions 101

Community Patterns

1...456

Strip ANSI escape characters

1

Regular Expression
Python

r"
\^\[(?:\[[^@-~]+[\@-\~]|[0-9@-_])
"
g

Description

no description available

Submitted by anonymous - 10 years ago