开发者

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

Open a file in the Visual Studio binary editor that contains a null byte (0x00), then use the Q开发者_开发知识库uick Find feature (Ctrl +F) to find null bytes.

I would have thought I could use a regular expression such as \x00 to match null bytes but it doesn't work. Searching for any other hex value using this method works fine.

Is this a VS bug, 'feature', or am I just missing something? Is there a work around?


You can use "00" as the text and select "Match whole word" to find null bytes in the binary editor. You need to select match whole word to ensure you don't also match "00" in ascii. Just tried it so I know it works.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜