What is the best way to strip ANSI escape sequences from a string?
Go from:
# Go from
"[\e[32m\"one\"\e[0m, \e[32m\"two\"\e[0m, \e[32m\"three\"\e[0m]"
# To
["one", "two", "three"]
Thanks a million!
What is the best way to strip ANSI escape sequences from a string?
Go from:
# Go from
"[\e[32m\"one\"\e[0m, \e[32m\"two\"\e[0m, \e[32m\"three\"\e[0m]"
# To
["one", "two", "three"]
Thanks a million!