Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
Remove ANSI escape codes
Open Workspace
Python
Substitution
Created 2022-06-29 07:04
0
Regular Expression
r"
\x1B
(?:
[
@
-
Z
\\
-
_
]
|
\[
[
0
-
?
]
*
[
-
/
]
*
[
@
-
~
]
)
"
gm
Description
Remove ANSI escape codes
Submitted by
Anonymous