Off the top of my head...
s/\033[0-9, ]*[a-zA-Z]//g
NOTE: That won't accutally replace the two examples you gave however, because your examples contain "[" which wasn't in your description.
In reply to Re: how to strip VT100 escape sequences?
by hossman
in thread how to strip VT100 escape sequences?
by guillaumerava
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |