stripAnsi function
Strip ANSI escape codes from a text
Use ansiRegex to match ANSI escape codes
Implementation
String stripAnsi(String text) {
return text.replaceAll(ansiRegex(), '');
}
Strip ANSI escape codes from a text
Use ansiRegex to match ANSI escape codes
String stripAnsi(String text) {
return text.replaceAll(ansiRegex(), '');
}