Tuesday, April 6, 2010

Find/Replace nul objects in Notepad++

I was requested to create a list of customers we have in one of our management systems. Unfortunately, this particular system does not export a readable list directly. After backing up the section that contained the customers, I opened it in Notepad ++ to see what I could do with it.

Funny characters were all over the place. By default, the app won't find/replace nuls by highlighting the character/s. You have to use a regular expression to make it work.

Select Replace (Ctrl/H)
Find what: \x00
Replace with:
Click on radio button Regular expression
Click on Replace All

This was from the Notepad++ list archive here. I don't know who the actual author of that email is, but thanks for the help.

30 comments:

Jason said...

Great, this helped, thanks!

fp said...

great! tks!

Unknown said...

Thank you!

Sergio Carvalho said...

It's very good to correct txt files saved with Foxit Reader from pdf files.

Unknown said...

Thanks. This really helped

sixline said...

Also thanks. This helped me, too.

raghukanth said...

Thanks man how to find all these types of regular expressions?

Osama Walker said...

Perfect. Thanks!

Unknown said...

Great, thanks for this.

VSValdelis said...

Hey :) Thanks for advice. Very useful

ecmcgraw said...

Many thanks for keeping this info on the net. I'm a newbie trying to learn how to deal with txt files, and I never knew notepad++ existed.

cat said...

I'll try this thanks a lot

cat said...

I'll try this thanks a lot

Unknown said...

ty !

Unknown said...

ty !

Unknown said...

This did not get me my code back, it instead erased everything, the page is blank

Unknown said...

Thanks Mike. Its working for me. I was looking for this solution :)

Sachin said...

awesome.

Unknown said...

Where is my code ?? its just remove null string

che_vote said...

Thank's a lot..it's work

Ram said...

it erased all my codes

MasterElite said...

Thank you sir.

Unknown said...

But after i removed the null, the email cannot be drag back into outlook , please help

Anonymous said...

Works like a charm! Thanks.

sandeep said...

How to remove those characters in java ?

Unknown said...

It worked for me .. great thanks

Unknown said...

Wow.. great.. it worked.. :) Plz share some more useful tips like this.. :)

Unknown said...

Where is this radio button? I see no such thing. Perhaps updating the post..

Afif said...

Worked for me as well! What are these random 'NUL' symbols and what do they represent? Thanks

DG_Blogger said...

Thank you a lot, it worked for me as well.