DEV Community

Samandar Ravshanov
Samandar Ravshanov

Posted on

Check if a string has ANSI escape codes

from functorflow import f

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

Top comments (0)