Maybe a newbiew question, but is there any way to use the regex++ libary to search chunks of binary data? (or more accurately to search a buffer of data of known length for a given pattern which may itself contain null bytes) --brian
There is no reason you can not use Regex++ with data which containes null bytes. Use the forms of the search algorithms which take iterators which define the extents of the data on which you want to search. You also should be able to use the forms of the search algorithms which takes C++ std::strings since null bytes can be embedded in std::strings AFAIK. I do not believe the Regex++ algorithms do any stopping or special actions if they encounter null bytes in the search stream, but John Maddock the creator of the Regex++ implementation would know about that for sure. brian_hernacki wrote:
Maybe a newbiew question, but is there any way to use the regex++ libary to search chunks of binary data? (or more accurately to search a buffer of data of known length for a given pattern which may itself contain null bytes)
participants (2)
-
brian_hernacki
-
Edward Diener