How can I match a null byte (0x00) in a Visual Studio binary editor with a regular expression search?

Open the file in the Visual Studio binary editor that contains the null byte (0x00), then use the quick search function (Ctrl + F) to find the null bytes.

I would think I could use a regex like \ x00 to match zero bytes, but it doesn't work. Finding any other hex value using this method works fine.

Is this a VS error, a โ€œfunctionโ€, or am I just missing something? Is there any work around?

+4
source share
1 answer

You can use โ€œ00โ€ as the text and select โ€œMatch the whole wordโ€ to find the null bytes in the binary editor. You need to select the match of the whole word so that you do not match โ€œ00โ€ in ascii. Just tried to let me know that this works.

+4
source

Source: https://habr.com/ru/post/1309615/


All Articles