0

I'm trying to remove

\x1b(B\x1b[m

in a string, but whenever I try using strip("\x1b(B\x1b[m") it doesn't seem to work. Is there a way to ask for that literal string instead of using the expression it is.

Sam
  • 405
  • 2
  • 5
  • 13
  • 1
    Is the character sequence at the end of the string? Because `strip` only works on the ends of strings. Did you mean to use `replace`? – Kevin Jun 01 '18 at 13:34
  • you're absolutely right.. thank you for the reminder! – Sam Jun 01 '18 at 13:35

0 Answers0