Alright, If str.replace() all '|BS|' with '\b' and print the result it prints what is wanted. How to "evaluate" 'it \x08\x08\x08this is one\x08\x08\x08an example' to 'this is an example'? There is no need for loops.
Regex: Remove all match plus one char before all
Users browsing this thread: 3 Guest(s)