Timeline for Removing control chars (including console codes / colours) from script output
Current License: CC BY-SA 4.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| S May 19, 2020 at 5:33 | history | suggested | Pablo A | CC BY-SA 4.0 |
Improved formatting
|
| May 19, 2020 at 0:48 | review | Suggested edits | |||
| S May 19, 2020 at 5:33 | |||||
| May 23, 2019 at 12:03 | comment | added | yunzen |
It might be \u001b instead of \x1b
|
|
| Aug 24, 2017 at 15:21 | comment | added | atripes |
Why is it \x1b and not \033?
|
|
| Nov 11, 2016 at 13:11 | comment | added | ideasman42 |
This doesn't remove \x1b(B (included in rusts color output)
|
|
| Aug 23, 2015 at 14:26 | comment | added | Hannu |
Replace .\{1,5\} with [^m]\{1,5\} for that - but also note that this even then still only removes "graphics rendition" codes (those that end in an m) - basically color, reverse, bold and italics styles (where applicable).
|
|
| Dec 30, 2013 at 15:14 | comment | added | Lekensteyn |
This regex strips too much (foo\e[1m(1m = { becomes foo = { instead of foo(m = {), replacing . by [0-9;] is more accurate.
|
|
| Jun 9, 2011 at 18:41 | history | answered | Glorytoad | CC BY-SA 3.0 |