Edit Keylog File

S

Steph

Hi everyone. A keylogger I have spits out a file that is very difficult to
read! My daughter makes a ot of mistakes typing, so there are a lot of
backspaces! Unfortunately, the keylogger records a backspace as
[Backspace]. Is there a way to write code to start at the beginning of the
file and essentially do an edit/replace, deleting [Backspace] AND the
character before it? Thanks!!
 
J

Jay Freedman

Steph said:
Hi everyone. A keylogger I have spits out a file that is very
difficult to read! My daughter makes a ot of mistakes typing, so
there are a lot of backspaces! Unfortunately, the keylogger records
a backspace as [Backspace]. Is there a way to write code to start at
the beginning of the file and essentially do an edit/replace,
deleting [Backspace] AND the character before it? Thanks!!

You don't have to write code. Just open the Replace dialog and put

^?[Backspace]

in the Find What box. Leave the Replace With box empty and click the Replace
All button.

You can record this as a macro if you don't want to remember that the ^?
code stands for "any single character". (You can also find that code by
clicking the More button in the Replace dialog and then the Special button.)

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
S

Steph

Hi Jay. Thanks for the response. When I did the replace with ?[Backspace],
Word comes back and says it has searched the entire document and has made 0
replacements. If I check the "use wildcards" button, it replaces a bunch of
things I don't want replaced. Am i doing something wrong? Thanks!


Jay Freedman said:
Steph said:
Hi everyone. A keylogger I have spits out a file that is very
difficult to read! My daughter makes a ot of mistakes typing, so
there are a lot of backspaces! Unfortunately, the keylogger records
a backspace as [Backspace]. Is there a way to write code to start at
the beginning of the file and essentially do an edit/replace,
deleting [Backspace] AND the character before it? Thanks!!

You don't have to write code. Just open the Replace dialog and put

^?[Backspace]

in the Find What box. Leave the Replace With box empty and click the
Replace All button.

You can record this as a macro if you don't want to remember that the ^?
code stands for "any single character". (You can also find that code by
clicking the More button in the Replace dialog and then the Special
button.)

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup
so all may benefit.
 
S

Steph

Sorry Jay, my bad. Forgot the ^!! Thanks for your help!

Steph said:
Hi Jay. Thanks for the response. When I did the replace with
?[Backspace], Word comes back and says it has searched the entire document
and has made 0 replacements. If I check the "use wildcards" button, it
replaces a bunch of things I don't want replaced. Am i doing something
wrong? Thanks!


Jay Freedman said:
Steph said:
Hi everyone. A keylogger I have spits out a file that is very
difficult to read! My daughter makes a ot of mistakes typing, so
there are a lot of backspaces! Unfortunately, the keylogger records
a backspace as [Backspace]. Is there a way to write code to start at
the beginning of the file and essentially do an edit/replace,
deleting [Backspace] AND the character before it? Thanks!!

You don't have to write code. Just open the Replace dialog and put

^?[Backspace]

in the Find What box. Leave the Replace With box empty and click the
Replace All button.

You can record this as a macro if you don't want to remember that the ^?
code stands for "any single character". (You can also find that code by
clicking the More button in the Replace dialog and then the Special
button.)

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup
so all may benefit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top