DEV Community

Samandar Ravshanov
Samandar Ravshanov

Posted on

📦 Strip ANSI escape codes from a string

from functorflow import f

r = f('strip-ansi', '\u001B[4mUnicorn\u001B[0m')
print(r) # 'Unicorn'
Enter fullscreen mode Exit fullscreen mode

Top comments (0)