I have a space with hex separators and you want to find /[0-9a-f]\{2\}if the value is not equal 00. For example, if the buffer
/[0-9a-f]\{2\}
00
00 00 00 00 18 00 00 00
the pattern should match 18, but not a space or 00.
18
This can be done with the following regular expression:
\x\{2}\(00\)\@<!
Explanation:
\x
\{2}
\(00\)
\@<!
For more information see
:help pattern.txt