so far , I have been using in my programs regcomp to use regular expressions on regular strings.
Now, I need to find particular byte patterns in non-ASCII binary streams: it is my understanding that regcomp cannot work in this context.
Practically, I would like something that lets me define – let’s say – a 3-byte pattern, possibly using hex notation:
\x27\x87\xFE
Thanks
If you need a regex library that works on UTF-8, you should use Phillip Hazel’s excellent PCRE library.