in reply to Re: should this backspace removal code be done better?
in thread should this backspace removal code be done better?
The OP wants to match a backspace, not a backslash followed by a "b"...
/\b/ doesn't match a backspace, though, but a word boundary. You have to use it in a class to make it match.
s/.[\b]//g;
|
|---|