I have some strings with all this kind of characters in it which also has normal letters ,
and i want to transform all the “wired” characters in they’re normal representation .
So my question is :
Is there a Pythonic way of doing this ?
I have a string for example this one :
Mymethods defined here:
|
| __add__(...)
| x.__add__(y) <==> x+y
This somehow has this output :
Mymethods defined here:\n
| \n
| _\x08__\x08_a\x08ad\x08dd\x08d_\x08__\x08_(...)\n
| x.__add__(y) <==> x+y
\x08is the character representation forbackspace.So you should do a regexp replace
That will remove all the
\x08.The
\nis OK because it represents the end of the line.