Replace given char with ASCII nul in Notepad++

find and replacenotepad

I tried extended search –> replace with \0, but it does not seem to work. Instead it deletes all occurrences of the character. Could it be a bug?

NB: replacing with \n, \r\n and the like works in extended search.

I am using Notepad++ 6.4.1 Unicode.

Best Answer

Try \d### (where # is a single digit in the 0-9 range).

See Escape sequences supported in extended mode for more.

Edit: Looks like \d, \u, \x etc. don't work properly when it comes to replacing with the NUL character. Search works fine (I inserted a few NULs using a hex editor), but replace doesn't and simply deletes the characters.