Regular Expressions 101

Community Patterns

Strip ANSI escape characters

1

Regular Expression
Python

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

Description

no description available

Submitted by anonymous - 10 years ago