Delete character and prior letter

S

Steph

Hello all. I have one of those keylogger programs that records emails being
sent. The problem is it records every keystroke, backspace being a
keystroke. A backspace is recorded as [backspace]. So I took the file and
did an edit/replace to remove backspace], leaving the front [. So
conceptually, I was hoping for something that would start at the beginning,
find each [ and delete it AND the letter immediately prior to that. So
basically it would delete the backspace keystroke, and remove the character
deleted by the backspace keystroke. Is this possible? Thanks in advance!!
 
T

Tony Jollans

Find: ^?[ (caret, question mark, left bracket)
Replace with: (leave blank)

You could have done the whole thing in one go with:


Find: ^?[backspace]
Replace with: (leave blank)

But will it always work or might the backspaced character have been,
perhaps, "[tab]"?
 
Top